Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
f40fc9ab
Commit
f40fc9ab
authored
Feb 12, 2016
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3099 from deuwert/more-limits
Addition to mruby limitation documentation
parents
18870428
e7eb40f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
77 additions
and
0 deletions
+77
-0
doc/limitations.md
doc/limitations.md
+77
-0
No files found.
doc/limitations.md
View file @
f40fc9ab
...
...
@@ -64,3 +64,80 @@ end
#### mruby [1.2.0 (2015-11-17)]
No exception is raised.
## Check of infinite recursion
mruby does not check infinite recursion across C extensions.
```
ruby
def test; eval 'test'; end; test
```
#### Ruby [ruby 2.0.0p645 (2015-04-13 revision 50299)]
```
SystemStackError
``` is raised.
#### mruby [1.2.0 (2015-11-17)]
Segmentation fault.
## Fiber execution can't cross C function boundary
mruby's ```
Fiber
``` is implemented in a similar way to Lua's co-routine. This
results in the consequence that you can't switch context within C functions.
Only exception is ```
mrb_fiber_yield
``` at return.
## ```
Array
``` does not support instance variables
To reduce memory consumption ```
Array
``` does not support instance variables.
```
ruby
class Liste < Array
def initialize(str = nil)
@feld = str
end
end
p Liste.new "foobar"
```
#### Ruby [ruby 2.0.0p645 (2015-04-13 revision 50299)]
```
[]
```
#### mruby [1.2.0 (2015-11-17)]
```
ArgumentError
``` is raised.
## Method visibility
For simplicity reasons no method visibility (public/private/protected) is
supported.
```
ruby
class VisibleTest
def public_method; end
private
def private_method; end
end
p VisibleTest.new.respond_to?(:private_method, false)
p VisibleTest.new.respond_to?(:private_method, true)
```
#### Ruby [ruby 2.0.0p645 (2015-04-13 revision 50299)]
```
false
true
```
#### mruby [1.2.0 (2015-11-17)]
```
true
true
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment