[MacRuby-devel] [MacRuby] #571: #respond_to? should return false for unimplemented methods

MacRuby ruby-noreply at macosforge.org
Thu Jan 21 15:20:20 PST 2010

#571: #respond_to? should return false for unimplemented methods
 Reporter:  honglilai@…          |       Owner:  lsansonetti@…        
     Type:  defect               |      Status:  new                  
 Priority:  blocker              |   Milestone:                       
Component:  MacRuby              |    Keywords:                       
 MRI >= 1.9.2's #respond_to? method now returns false for unimplemented
 methods. By "unimplemented" I mean methods which are #defined as
 rb_f_notimplement in the MRI 1.9 source code. rb_f_notimplemented is a
 method which raises NotImplementedErrror.

 An example of this is Process.fork, implemented on MRI 1.9 as rb_f_fork.
 The #fork method is defined on all platforms, even on platforms where fork
 is not actually supported (i.e. rb_f_fork is #defined to
 rb_f_notimplemented). However Process.respond_to?(:fork) now returns false
 instead of true on these platforms.

 MacRuby should follow this behavior.

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

More information about the MacRuby-devel mailing list