From 7c4a5414c8c44c4cbc3ea5bc7d2158cbd5652a27 Mon Sep 17 00:00:00 2001 From: yugui Date: Wed, 17 Dec 2008 06:15:46 +0000 Subject: merges r20747 and r20802 from trunk into ruby_1_9_1. * test/ruby/test_metaclass.rb: new test case for metaclass hierarchy. * class.c (make_metametaclass): new function. extracted from rb_make_metaclass. * class.c (rb_make_metaclass): uses make_metametaclass when called for a metaclass. * class.c (rb_singleton_class): creates a meta^(n+2)-class in addition to a meta^(n+1)-class when called for a meta^(n)-class. This is because the returned meta^(n+1) class must acts as an instance of Class, metaclass of Class, ..., meta^(n+1)-class of Class, Module, metaclass of Module, ..., meta^(n+1)-class of Module, Object, metaclass of Object, ..., meta^(n+2)-class of Object, BasicObject, metaclass of BasicObject, ..., meta^(n+2)-class of and BasicObject even when Class, Module, Object or BasicObject has not have its meta^(i)-class yet. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 832c38002..02fdaa61e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,28 @@ +Wed Dec 17 09:50:19 2008 Yuki Sonoda (Yugui) + + * test/ruby/test_metaclass.rb: removed codes for my debugging. + sorry. [ruby-dev:37470] + +Mon Dec 15 14:56:59 2008 Yuki Sonoda (Yugui) + + * test/ruby/test_metaclass.rb: new test case for metaclass hierarchy. + + * class.c (make_metametaclass): new function. extracted from + rb_make_metaclass. + + * class.c (rb_make_metaclass): uses make_metametaclass when called for a + metaclass. + + * class.c (rb_singleton_class): creates a meta^(n+2)-class in + addition to a meta^(n+1)-class when called for a meta^(n)-class. + This is because the returned meta^(n+1) class must acts as an instance of + Class, metaclass of Class, ..., meta^(n+1)-class of Class, + Module, metaclass of Module, ..., meta^(n+1)-class of Module, + Object, metaclass of Object, ..., meta^(n+2)-class of Object, + BasicObject, metaclass of BasicObject, ..., meta^(n+2)-class of + and BasicObject even when Class, Module, Object or BasicObject has + not have its meta^(i)-class yet. + Mon Dec 15 15:13:22 2008 Nobuyoshi Nakada * id.h, template/id.h.tmpl (ruby_method_ids): sees YYTOKENTYPE too. -- cgit