summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-02-04 08:09:14 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-02-04 08:09:14 +0000
commit43f68272c7fc50ba33c58f7e22923bac6fc204ac (patch)
tree039282445855b8cd45ea83fd2c3551e9a50975e9 /eval.c
parentc2269d5b4f60829a523f3479492267ef99e1c5fb (diff)
* object.c (rb_class_real): should not follow ICLASS link
* variable.c (classname): should follow ICLASS link explicitly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/eval.c b/eval.c
index 576b98b529..a9b79403b5 100644
--- a/eval.c
+++ b/eval.c
@@ -1803,7 +1803,7 @@ is_defined(self, node, buf)
case NODE_VCALL:
case NODE_FCALL:
- val = CLASS_OF(self);
+ val = self;
goto check_bound;
case NODE_CALL:
@@ -1811,7 +1811,6 @@ is_defined(self, node, buf)
PUSH_TAG(PROT_NONE);
if ((state = EXEC_TAG()) == 0) {
val = rb_eval(self, node->nd_recv);
- val = CLASS_OF(val);
}
POP_TAG();
if (state) {
@@ -1821,6 +1820,8 @@ is_defined(self, node, buf)
check_bound:
{
int call = nd_type(node)== NODE_CALL;
+
+ val = CLASS_OF(val);
if (call) {
int noex;
ID id = node->nd_mid;