From 154615ea666ce8d0ac44b2d450a226246358276e Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 16 Jan 2004 14:53:10 +0000 Subject: [PATCH] * eval.c (proc_eq): compare also arguments and environment (including local variables). [ruby-dev:22590] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 +++--- eval.c | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 84bda6a25f..425912f1bb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,7 @@ -Fri Jan 16 14:56:49 2004 Nobuyoshi Nakada +Fri Jan 16 23:53:09 2004 Nobuyoshi Nakada - * eval.c (proc_eq): compare also arguments and environment. - [ruby-dev:22590] + * eval.c (proc_eq): compare also arguments and environment + (including local variables). [ruby-dev:22590] Fri Jan 16 14:33:35 2004 Nobuyoshi Nakada diff --git a/eval.c b/eval.c index 1b769d58c9..0ad7402877 100644 --- a/eval.c +++ b/eval.c @@ -8215,6 +8215,7 @@ proc_eq(self, other) if (data->body != data2->body) return Qfalse; if (data->var != data2->var) return Qfalse; if (data->frame.uniq != data2->frame.uniq) return Qfalse; + if (data->dyna_vars != data2->dyna_vars) return Qfalse; return Qtrue; }