ts ha scritto: >>>>>>"C" == Chris Pine <glyconis / gmail.com> writes: > > > C> When you create a singleton class for an object, you are changing the > C> 'klass' pointer and, as I see it, changing which class it is an > C> instance of. What is returned by "instance_of?" does not change (and > C> I'm complaining about that, mind you; I'm fine with how it works), but > C> that object's immediate "papa" has changed. > > You are speaking about implementation details. > > If I remember well, matz has said one day that he can completely implement > ruby without the need of the singleton class. > > Forget the singleton class, for the moment :-) ah! this is something I always wanted to know, I've been always thinking on the lines of "why are'nt method just defined in the object? do we need this singleton class thing?"