mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Created Scripting faq (markdown)
+13
@@ -0,0 +1,13 @@
|
||||
## I can't override String#+
|
||||
|
||||
```
|
||||
> class String
|
||||
* def +
|
||||
* end
|
||||
* end
|
||||
=> nil
|
||||
> "a" + "b"
|
||||
=> "ab"
|
||||
```
|
||||
This causes a error in CRuby.
|
||||
This behavior is a limitation by the current implementation.
|
||||
Reference in New Issue
Block a user