From: Gary Wright Date: 2008-02-18T14:05:03+09:00 Subject: Re: object specific methods and id On Feb 17, 2008, at 4:09 AM, UpsNDowns wrote: > 1) > Looking at the ruby code (the C) it appears that the teacher may be > right in a technical sense. Fx the 'rb_class_real' method of > object.c 'peels' off any singletons before returning the class of > an object. > > (However that is also odd as the singletons get special help from > the VM that goes beyond their creation. In a clean solution, I > *guess*, the singletons could be completely ordinary classes once > they're made). I'm not sure why you keep switching the point of view (current implementation, possible alternate implementation, language-level). I've been writing in the context of what a Ruby programmer is able to see not what an implementer can or might be able to see. Gary Wright