зеркало из https://github.com/github/ruby.git
* eval.c (rb_attr): extra calls of method_added. [ruby-talk:76361]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
1bb3071bde
Коммит
d087821480
|
@ -1,3 +1,7 @@
|
|||
Sat Jul 19 02:00:39 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||
|
||||
* eval.c (rb_attr): extra calls of method_added. [ruby-talk:76361]
|
||||
|
||||
Fri Jul 18 18:44:22 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||
|
||||
* lib/mkmf.rb (init_mkmf): clear $INSTALLFILES. [ruby-dev:20727]
|
||||
|
|
2
eval.c
2
eval.c
|
@ -560,13 +560,11 @@ rb_attr(klass, id, read, write, ex)
|
|||
attriv = rb_intern(buf);
|
||||
if (read) {
|
||||
rb_add_method(klass, id, NEW_IVAR(attriv), noex);
|
||||
rb_funcall(klass, added, 1, ID2SYM(id));
|
||||
}
|
||||
if (write) {
|
||||
sprintf(buf, "%s=", name);
|
||||
id = rb_intern(buf);
|
||||
rb_add_method(klass, id, NEW_ATTRSET(attriv), noex);
|
||||
rb_funcall(klass, added, 1, ID2SYM(id));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче