[macruby-changes] [2577] MacRuby/trunk/parse.y

source_changes at macosforge.org source_changes at macosforge.org
Sat Sep 19 12:59:14 PDT 2009


Revision: 2577
          http://trac.macosforge.org/projects/ruby/changeset/2577
Author:   lsansonetti at apple.com
Date:     2009-09-19 12:59:13 -0700 (Sat, 19 Sep 2009)
Log Message:
-----------
more eval/Binding fixes (not 100% sure about this one, but we will see)

Modified Paths:
--------------
    MacRuby/trunk/parse.y

Modified: MacRuby/trunk/parse.y
===================================================================
--- MacRuby/trunk/parse.y	2009-09-19 19:13:31 UTC (rev 2576)
+++ MacRuby/trunk/parse.y	2009-09-19 19:59:13 UTC (rev 2577)
@@ -8086,7 +8086,7 @@
 		return NEW_LASGN(id, val);
 	    }
 	    else {
-		if (!rb_local_define(id)) {
+		if (in_def > 0 || in_single > 0 || !rb_local_define(id)) {
 		    dyna_var(id);
 		}
 		return NEW_DASGN_CURR(id, val);
@@ -8094,9 +8094,7 @@
 	}
 	else {
 	    if (!local_id(id)) {
-		//if (!rb_local_define(id)) {
-		    local_var(id);
-		//}
+		local_var(id);
 	    }
 	    return NEW_LASGN(id, val);
 	}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090919/9add7f90/attachment.html>


More information about the macruby-changes mailing list