From: Gary Wright Date: 2010-12-03T06:30:37+09:00 Subject: Re: Singleton class, metaclass, eigenclass: what do they mean? On Dec 2, 2010, at 1:50 PM, Intransition wrote: > > > On Dec 2, 12:23 pm, Gary Wright wrote: >> On Dec 2, 2010, at 11:47 AM, Intransition wrote: >> >>> On Dec 2, 12:25 am, Tony Arcieri wrote: >>>> Every time I think I have my head around what these terms mean I seem to run >>>> across someone with a completely different definition. >> >>>> My understanding was that the singleton class is what you obtain when you >>>> call self.class in instance scope, and that metaclass and eigenclass >>>> are interchangeable terms for what you obtain if you call class << self; >>>> self; end in instance scope. >> >>>> Is this correct? Do you have a different definition? >> >>> Technically they are all the same. >> >> Perhaps it was the original question that was confusing but they >> are not all the same. > > The terms singleton class, eigenclass and metaclass are. Which I > believe was the question. > As I said, the original question is somewhat vague. I read it as asking if all of the following are the same: self.class in instance scope = singleton class metaclass = singleton class eigenclass = singleton class and that is not correct (i.e. self.class is not a singleton class). Gary Wright