* 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
This commit is contained in:
parent
ffc3c4b401
commit
0a396e3ebb
@ -5,6 +5,15 @@ Fri Feb 8 05:31:48 2002 Minero Aoki <aamine@loveruby.net>
|
||||
|
||||
* lib/net/http.rb: initialize HTTP.proxy_port by HTTP.port.
|
||||
|
||||
Fri Feb 8 01:27:33 2002 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* 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.
|
||||
|
||||
Thu Feb 07 13:44:08 2002 akira yamada <akira@arika.org>
|
||||
|
||||
* uri/common.rb (URI::join): new method.
|
||||
|
1
eval.c
1
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user