[MacRuby] #1111: MacRuby throws an exception when undefine the String#length.
MacRuby
ruby-noreply at macosforge.org
Wed Jan 12 08:28:08 PST 2011
#1111: MacRuby throws an exception when undefine the String#length.
----------------------------------+-----------------------------------------
Reporter: watson1978@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: major | Milestone:
Component: MacRuby | Keywords:
----------------------------------+-----------------------------------------
Test:
{{{
$ ruby -v -e 'String.class_eval{ undef :length }'
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
$ ruby19 -v -e 'String.class_eval{ undef :length }'
ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-darwin10.5.0]
$ macruby -v -e 'String.class_eval{ undef :length }'
MacRuby 0.9 (ruby 1.9.2) [universal-darwin10.0, x86_64]
-e:1:in `<main>': cannot undefine method `length' because it is a native
method (RuntimeError)
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/1111>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list