[MacRuby-devel] [MacRuby] #197: A removed, or undefined, pure Objective-C method should raise a NoMethodError when called.

MacRuby ruby-noreply at macosforge.org
Tue Jan 6 01:55:22 PST 2009


#197: A removed, or undefined, pure Objective-C method should raise a
NoMethodError when called.
-------------------------------------+--------------------------------------
 Reporter:  eloy.de.enige@…          |       Owner:  lsansonetti@…        
     Type:  enhancement              |      Status:  new                  
 Priority:  blocker                  |   Milestone:                       
Component:  MacRuby                  |    Keywords:                       
-------------------------------------+--------------------------------------
 Currently when removing a pure Objective-C method a warning is raised.

 However, it would be more Ruby-ish if remove_method and undef_method would
 replace the methods with a stub method which raises a NoMethodError.

 This way the user will still get a sensible error message when the
 application crashes, but will not constantly be warned when removing
 methods.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/197>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list