зеркало из https://github.com/github/ruby.git
* eval.c (mnew): original class of method defined in module should
be the module not intermediate class. [ruby-dev:19040] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
f51bd1d018
Коммит
df8833203e
|
@ -1,3 +1,8 @@
|
|||
Tue Dec 10 12:01:15 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||
|
||||
* eval.c (mnew): original class of method defined in module should
|
||||
be the module not intermediate class. [ruby-dev:19040]
|
||||
|
||||
Wed Dec 4 16:37:11 2002 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* object.c (copy_object): copy finalizers as well if any.
|
||||
|
|
1
eval.c
1
eval.c
|
@ -6878,6 +6878,7 @@ mnew(klass, obj, id, mklass)
|
|||
goto again;
|
||||
}
|
||||
|
||||
if (TYPE(klass) == T_ICLASS) klass = RBASIC(klass)->klass;
|
||||
method = Data_Make_Struct(mklass, struct METHOD, bm_mark, free, data);
|
||||
data->klass = klass;
|
||||
data->recv = obj;
|
||||
|
|
Загрузка…
Ссылка в новой задаче