diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-12-19 17:31:54 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-12-19 17:31:54 +0900 |
| commit | 8f06789cb311f31c1ab3fca534a4ab660391db75 (patch) | |
| tree | 1ef2de0ec2870b6955238ba56b77a434aa772ce6 /doc/limitations.md | |
| parent | fcc9b7fc2a6d32bd055bbb35396f3af62165a1cb (diff) | |
| parent | 97eed4493f62da83f81622f5045a5c0db3ef22d2 (diff) | |
| download | mruby-8f06789cb311f31c1ab3fca534a4ab660391db75.tar.gz mruby-8f06789cb311f31c1ab3fca534a4ab660391db75.zip | |
Merge pull request #5232 from jbampton/lint-markdown
feat(CI): add a GitHub Action to lint the Markdown
Diffstat (limited to 'doc/limitations.md')
| -rw-r--r-- | doc/limitations.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/limitations.md b/doc/limitations.md index 8ac959b98..f9e81a920 100644 --- a/doc/limitations.md +++ b/doc/limitations.md @@ -13,7 +13,6 @@ This document is collecting these limitations. This document does not contain a complete list of limitations. Please help to improve it by submitting your findings. - ## `1/2` gives `0.5` Since mruby does not have `Bignum`, bigger integers are represented @@ -72,6 +71,7 @@ rescue => e raise e end ``` + ## Fiber execution can't cross C function boundary mruby's `Fiber` is implemented in a similar way to Lua's co-routine. This @@ -252,7 +252,7 @@ trace (most recent call last): ## Keyword arguments mruby keyword arguments behave slightly different from CRuby 2.5 -to make the behavior simpler and less confusing. +to make the behavior simpler and less confusing. #### Ruby [ruby 2.5.1p57 (2018-03-29 revision 63029)] @@ -290,6 +290,7 @@ Ruby outputs `falsy`. mruby outputs `truthy`. def m(a,(b,c),d); p [a,b,c,d]; end m(1,[2,3],4) # => [1,2,3,4] ``` + Destructured arguments (`b` and `c` in above example) cannot be accessed from the default expression of optional arguments and keyword arguments, since actual assignment is done after the evaluation of those default |
