From: Nathan Smith Date: 2006-08-25T00:42:34+09:00 Subject: Re: Call functions of superclass On Fri, 25 Aug 2006, ts wrote: > >>>>> "N" == Nathan Smith writes: > > N> Inside of a class instance method, self.class returns a reference to the > N> metaclass of the class. Calling superclass on the metaclass returns > N> another metaclass, and you're right -- it will print A.hi (as I said =]) > > Guy Decoux > > You really think that self.class, i.e. B, make reference to the singleton > class of B ? Re-read what I wrote: > N> Inside of a class instance method, self.class returns a reference to the metaclass of the class. metaclass != singleton class Nate