mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* object.c (rb_class_initialize): The inherited hook should be run
immediately after a new subclass is created, which is before evaluating a given block. [Backport #621] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2f5f40bdd1
commit
bc078709a5
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
Sun Oct 25 20:04:35 2009 Akinori MUSHA <knu@iDaemons.org>
|
||||
|
||||
* object.c (rb_class_initialize): The inherited hook should be run
|
||||
immediately after a new subclass is created, which is before
|
||||
evaluating a given block. [Backport #621]
|
||||
|
||||
Sun Oct 25 20:02:46 2009 Akinori MUSHA <knu@iDaemons.org>
|
||||
|
||||
* configure.in: Fix syntax error. when() is not defined in this
|
||||
|
|
2
object.c
2
object.c
|
@ -1567,8 +1567,8 @@ rb_class_initialize(argc, argv, klass)
|
|||
}
|
||||
RCLASS(klass)->super = super;
|
||||
rb_make_metaclass(klass, RBASIC(super)->klass);
|
||||
rb_mod_initialize(klass);
|
||||
rb_class_inherited(super, klass);
|
||||
rb_mod_initialize(klass);
|
||||
|
||||
return klass;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue