#571: #respond_to? should return false for unimplemented methods
---------------------------------+------------------------------------------
Reporter: hongli...@… | Owner: lsansone...@…
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/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel