Revision
3397
Author
lsansonetti@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

Diff

Modified: MacRuby/trunk/dispatcher.cpp (3396 => 3397)


--- 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 {