* eval.c (rb_mod_define_method): initialize orig_func too.

(ruby-bugs-ja:PR#330)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2002-09-10 15:44:36 +00:00
parent fe06b5a0e9
commit bb34d7163d
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Wed Sep 11 00:41:10 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
* eval.c (rb_mod_define_method): initialize orig_func too.
(ruby-bugs-ja:PR#330)
Tue Sep 10 23:35:46 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
* parse.y (nextc): restore line number after here documents.

1
eval.c
View File

@ -7136,6 +7136,7 @@ rb_mod_define_method(argc, argv, mod)
body = bind_clone(body);
Data_Get_Struct(body, struct BLOCK, block);
block->frame.last_func = id;
block->frame.orig_func = id;
block->frame.last_class = mod;
node = NEW_BMETHOD(body);
}