[MacRuby] #1111: MacRuby throws an exception when undefine the String#length.

MacRuby ruby-noreply at macosforge.org
Thu Jan 13 17:16:32 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:                       
----------------------------------+-----------------------------------------

Comment(by lsansonetti@…):

 That is expected: we cannot allow the user to change native methods such
 as NSString -length because it can cause unexpected crashes later in the
 process.

 However, as String is RubyString (a subclass), maybe this exception
 shouldn't be raised here.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1111#comment:1>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list