From: Jim Weirich Date: 2005-04-20T00:01:15+09:00 Subject: Re: [EVALUATION] - E03c - The Ruby Object Model (Revised Documentation) David A. Black said: >> Accessing Object's metaclass: >> >>>> meta_class_of_Object = class << Object; self; end >> => # >>>> meta_class_of_Object.class >> => Class >> >> So, the metaclass of Object /does/ inherit from class. > > Doesn't that tell you that it is an instance of Class, rather than > that it inherits from Class? As opposed to: > > irb(main):001:0> c = (class << Object; self; end) > => # > irb(main):002:0> c.superclass > => Class I stand corrected. David's code demonstrates that the metaclass does inherit from Class. Mine demonstrated that it was an instance of Class. -- -- Jim Weirich jim@weirichhouse.org http://onestepback.org ----------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)