From: Jim Weirich Date: 2005-05-05T01:07:05+09:00 Subject: Re: [RCR] Object#inside_metaclass? David A. Black said: >> i believe the implementaion is correct iff the following statement is >> true: >> >> all meta-classes descend from the meta-class of Object. > > I fear the terminology issue raises its head here. Is there any > reason not to use the customary "singleton class", pending some > pronouncement from Matz that it's no longer the right term? There is a distinction, although some people blur it. Those things that are almost metaclasses (but aren't because Ruby doesn't have metaclasses) are a subset of all singleton classes. As noted, these almost-metaclasses inherit from the almost-metaclass of Object. These almost-metaclasses are the singleton classes of Class objects. All almost-metaclasses are singleton classes. Not all singleton classes are almost-metaclasses. -- -- 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)