[macruby-changes] [2862] MacRuby/trunk/variable.c

source_changes at macosforge.org source_changes at macosforge.org
Mon Oct 19 20:16:07 PDT 2009


Revision: 2862
          http://trac.macosforge.org/projects/ruby/changeset/2862
Author:   lsansonetti at apple.com
Date:     2009-10-19 20:16:06 -0700 (Mon, 19 Oct 2009)
Log Message:
-----------
always set the outer of a class to something

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

Modified: MacRuby/trunk/variable.c
===================================================================
--- MacRuby/trunk/variable.c	2009-10-20 03:15:43 UTC (rev 2861)
+++ MacRuby/trunk/variable.c	2009-10-20 03:16:06 UTC (rev 2862)
@@ -274,9 +274,7 @@
     OBJ_FREEZE(str);
     rb_ivar_set(klass, classpath, str);
 
-    if (set_outer) {
-	rb_vm_set_outer(klass, under);
-    }	
+    rb_vm_set_outer(klass, set_outer ? under : rb_cObject);
 }
 
 void
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20091019/cb806f7a/attachment.html>


More information about the macruby-changes mailing list