[macruby-changes] [465] MacRuby/trunk/vm_insnhelper.c

source_changes at macosforge.org source_changes at macosforge.org
Thu Aug 21 18:48:09 PDT 2008


Revision: 465
          http://trac.macosforge.org/projects/ruby/changeset/465
Author:   lsansonetti at apple.com
Date:     2008-08-21 18:48:09 -0700 (Thu, 21 Aug 2008)
Log Message:
-----------
when looking for potential super methods in modules, make sure we do not lookup in the module's superclass (NSObject typically)

Modified Paths:
--------------
    MacRuby/trunk/vm_insnhelper.c

Modified: MacRuby/trunk/vm_insnhelper.c
===================================================================
--- MacRuby/trunk/vm_insnhelper.c	2008-08-21 21:19:40 UTC (rev 464)
+++ MacRuby/trunk/vm_insnhelper.c	2008-08-22 01:48:09 UTC (rev 465)
@@ -1404,7 +1404,11 @@
 	    NODE *mn;
 	    IMP imp;
 	    SEL sel;
+
+	    VALUE saved_imod_super = RCLASS_SUPER(imod);
+	    RCLASS_SUPER(imod) = 0;
 	    mn = rb_objc_method_node(imod, mid, &imp, &sel);
+	    RCLASS_SUPER(imod) = saved_imod_super;
 	    if (imp != NULL) {
 		previous_sklass = klass;
 		*mnp = mn;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080821/80243f00/attachment.html 


More information about the macruby-changes mailing list