summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-06 07:02:55 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-06 07:02:55 +0000
commita70f8f3dab754a5df42c262c40d4a6650d4a99d2 (patch)
treefab3a74409b77c9e8ddf72de991eef0d35c00c61
parenta026063aeff59d8d8714d46f336197cd5f3d1c9c (diff)
downloadruby-a70f8f3dab754a5df42c262c40d4a6650d4a99d2.tar.gz
ruby-a70f8f3dab754a5df42c262c40d4a6650d4a99d2.tar.xz
ruby-a70f8f3dab754a5df42c262c40d4a6650d4a99d2.zip
* variable.c (ivar_i): need to support class local instance
variables. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--variable.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a6974c541..2222a5125 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/variable.c b/variable.c
index be94d4314..504e93e0c 100644
--- a/variable.c
+++ b/variable.c
@@ -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;