summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-02-08 05:20:34 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-02-08 05:20:34 +0000
commit0a396e3ebb93f26c771b7f3d3721052bffad44ea (patch)
treee890db041d94a03b98bc55b932284a0637b2d783 /eval.c
parentffc3c4b401424aae94e45462acbf3fc585b13e0c (diff)
* parse.y (yycompile): should inherit "in_single" if eval happened
in a singleton method. * eval.c (rb_eval): class variables from singleton methods defined within singleton class statement should work like ones defined by sington def statements. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 0de33223c4..63953757f2 100644
--- a/eval.c
+++ b/eval.c
@@ -2909,7 +2909,6 @@ rb_eval(self, n)
result = rb_cvar_get(ruby_cbase, node->nd_vid);
break;
}
- self = rb_iv_get(ruby_cbase, "__attached__");
/* fall through */
case NODE_CVAR2: /* singleton method */
result = rb_cvar_get(rb_cvar_singleton(self), node->nd_vid);