diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2016-02-11 15:34:04 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2016-02-11 15:34:04 +0900 |
| commit | b3a2d8bec50dfd3c7d756afc8c0c9a25c017cd0a (patch) | |
| tree | 6b74f7bde0085b4de377d2feb7cb2292bb1e5e6e /doc | |
| parent | 62b06ab4d428dec51a32d4da46e99206912141e7 (diff) | |
| parent | 983948c5be0bc170c7944b4353540cdb0e6afea9 (diff) | |
| download | mruby-b3a2d8bec50dfd3c7d756afc8c0c9a25c017cd0a.tar.gz mruby-b3a2d8bec50dfd3c7d756afc8c0c9a25c017cd0a.zip | |
Merge pull request #3098 from deuwert/limitations
Limitations
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/limitations.md | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/doc/limitations.md b/doc/limitations.md new file mode 100644 index 000000000..64054fcc6 --- /dev/null +++ b/doc/limitations.md @@ -0,0 +1,57 @@ +# Limitations + +The philosophy of mruby is to be a lightweight implementation of +the Ruby ISO standard. These two objectives are partially contradicting. +Ruby is an expressive language with complex implementation details which +are difficult to implement in a lightweight manner. To cope with this, +limitations to the "Ruby Compatibility" are defined. + +This document is collecting these limitations. + +## Integrity + +This document does not contain a complete list of limitations. +Please help to improve it by submitting your findings. + +## ```Array``` passed to ```puts``` + +Passing an Array to ```puts``` results in different output. + +```ruby +puts [1,2,3] +``` + +#### Ruby [ruby 2.0.0p645 (2015-04-13 revision 50299)] + +``` +1 +2 +3 +``` + +#### mruby [1.2.0 (2015-11-17)] + +``` +[1, 2, 3] +``` + +## ```Kernel.raise``` in rescue clause + +```Kernel.raise``` without arguments does not raise the current exception within +a rescue clause. + +```ruby +begin + 1 / 0 +rescue + raise +end +``` + +#### Ruby [ruby 2.0.0p645 (2015-04-13 revision 50299)] + +```ZeroDivisionError``` is raised. + +#### mruby [1.2.0 (2015-11-17)] + +No exception is raised. |
