Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Invalid return value of nil? #265

Closed
monaka opened this Issue Jun 12, 2012 · 3 comments

Comments

Projects
None yet
2 participants
Contributor

monaka commented Jun 12, 2012

$ ruby -e 'p nil?'
false
$ bin/mruby -e 'p nil?'
true
Owner

matz commented Jun 12, 2012

Because currently we use nil as a top-level self.
This will be resolved soon.

Contributor

monaka commented Sep 3, 2012

$ bin/mruby -e 'p nil?'
#<FalseClass:0x100000001>
$ ruby -e 'p nil?'
false

It seems this issue was fixed. But format is not same between cruby1.8 and mruby. Is this by specification?

Contributor

monaka commented Oct 26, 2012

What I commented above is fixed by 27f0024. So I close this issue. Thanks.

@monaka monaka closed this Oct 26, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment