[macruby-changes] [3397] MacRuby/trunk/dispatcher.cpp
source_changes at macosforge.org
source_changes at macosforge.org
Mon Feb 1 14:34:16 PST 2010
Revision: 3397
http://trac.macosforge.org/projects/ruby/changeset/3397
Author: lsansonetti at apple.com
Date: 2010-02-01 14:34:15 -0800 (Mon, 01 Feb 2010)
Log Message:
-----------
respond_to?: return false in case the method is not implemented
Modified Paths:
--------------
MacRuby/trunk/dispatcher.cpp
Modified: MacRuby/trunk/dispatcher.cpp
===================================================================
--- MacRuby/trunk/dispatcher.cpp 2010-02-01 16:00:07 UTC (rev 3396)
+++ MacRuby/trunk/dispatcher.cpp 2010-02-01 22:34:15 UTC (rev 3397)
@@ -1876,7 +1876,7 @@
}
IMP imp = method_getImplementation(m);
- if (UNAVAILABLE_IMP(imp)) {
+ if (UNAVAILABLE_IMP(imp) || imp == (IMP)rb_f_notimplement) {
status = RESPOND_TO_NOT_EXIST;
}
else {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100201/25d9d963/attachment.html>
More information about the macruby-changes
mailing list