1
0
Fork 0
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:
knu 2009-10-25 11:07:52 +00:00
parent 2f5f40bdd1
commit bc078709a5
2 changed files with 7 additions and 1 deletions

View file

@ -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

View file

@ -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;
}