diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-02-20 03:35:44 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-02-20 03:35:44 +0000 |
| commit | ece09314a94a2a797774a1f8d6ba59f3a7253e1f (patch) | |
| tree | 0cd9c4945bf199c8173a37a39407288b31cb342f /gc.c | |
| parent | 4b593002967d66925fd9acdef4dbf5a2d0f7e43c (diff) | |
| download | ruby-ece09314a94a2a797774a1f8d6ba59f3a7253e1f.tar.gz ruby-ece09314a94a2a797774a1f8d6ba59f3a7253e1f.tar.xz ruby-ece09314a94a2a797774a1f8d6ba59f3a7253e1f.zip | |
* parse.y (clhs): allow "Foo::Bar = x".
* parse.y (primary): "self[n]=x" can be legal even when "[]=" is
private. changes submitted in [ruby-talk:63982]
* parse.y (aryset): ditto.
* parse.y (attrset): "self.foo=x" can be legal even when "foo="
is private.
* eval.c (is_defined): private "[]=" and "foo=" support.
* eval.c (rb_eval): ditto.
* eval.c (assign): ditto.
* eval.c (rb_eval): "foo=" should not always be public.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
| -rw-r--r-- | gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -695,7 +695,6 @@ rb_gc_mark_children(ptr) case NODE_DASGN: case NODE_DASGN_CURR: case NODE_IASGN: - case NODE_CDECL: case NODE_CVDECL: case NODE_CVASGN: case NODE_COLON3: @@ -721,6 +720,7 @@ rb_gc_mark_children(ptr) case NODE_SCOPE: /* 2,3 */ case NODE_BLOCK_PASS: + case NODE_CDECL: rb_gc_mark((VALUE)obj->as.node.u3.node); rb_gc_mark((VALUE)obj->as.node.u2.node); break; |
