Created
May 2, 2012 03:19
-
-
Save Watson1978/2573338 to your computer and use it in GitHub Desktop.
MacRuby : bug : undef
This file contains hidden or 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
| 42.instance_eval{ undef :!= } | |
| p "abc" != 42 |
Author
Author
Expect
$ ruby19 test_undef.rb
test_undef.rb:1:in `block in <main>': no class to undef method (TypeError)
from test_undef.rb:1:in `instance_eval'
from test_undef.rb:1:in `<main>'
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
should not remove the method by "undef" from special const object.
if remove the method, it seems that also remove the method from NSObject.