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

source_changes at macosforge.org source_changes at macosforge.org
Wed Nov 26 19:02:43 PST 2008


Revision: 758
          http://trac.macosforge.org/projects/ruby/changeset/758
Author:   lsansonetti at apple.com
Date:     2008-11-26 19:02:43 -0800 (Wed, 26 Nov 2008)
Log Message:
-----------
temporary fix for #164

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

Modified: MacRuby/trunk/vm_insnhelper.c
===================================================================
--- MacRuby/trunk/vm_insnhelper.c	2008-11-26 01:50:00 UTC (rev 757)
+++ MacRuby/trunk/vm_insnhelper.c	2008-11-27 03:02:43 UTC (rev 758)
@@ -882,9 +882,14 @@
 			if (method != NULL
 			    && (imp = method_getImplementation(method)) != NULL
 			    && rb_objc_method_node3(imp) == NULL) {
+#if 0
+			    /* XXX this breaks KVO setters since the original implementation
+			     * assumes that _cmd is the original method name.
+			     */
 			    assert(class_addMethod((Class)klass, 
 					mcache->as.rcall.sel, imp,
 					method_getTypeEncoding(method)));
+#endif
 			    mcache->flags = RB_MCACHE_OCALL_FLAG;
 			    mcache->as.rcall.sel = sel;
 			    mcache->as.ocall.klass = klass;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20081126/586578a1/attachment.html>


More information about the macruby-changes mailing list