-
Notifications
You must be signed in to change notification settings - Fork 793
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Limitations | ||
|
||
The philosophy of mruby is to be a lightweight implementation of | ||
the Ruby ISO standard. These two objectives are partially contradicting | ||
due to the reason that Ruby is a powerful language with complex | ||
implementation details which are difficult to implement in a lightweight | ||
manner. | ||
|
||
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. | ||
|
||
## Confirmed limitations | ||
|
||
### ```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. |