1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* variable.c (ivar_i): need to support class local instance

variables.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2007-02-06 07:02:55 +00:00
parent c27ef66dd7
commit 979d021a8f
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Tue Feb 6 15:55:46 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* variable.c (ivar_i): need to support class local instance
variables.
Tue Feb 6 15:44:11 2007 Koichi Sasada <ko1@atdot.net>
* compile.c (iseq_compile_each): fix setting is_local flag.

View file

@ -985,7 +985,7 @@ rb_ivar_defined(VALUE obj, ID id)
static int
ivar_i(ID key, struct global_entry *entry, VALUE ary)
{
if (rb_is_instance_id(key)) {
if (rb_is_instance_id(key) || rb_is_instance2_id(key)) {
rb_ary_push(ary, ID2SYM(key));
}
return ST_CONTINUE;