From: "David A. Black" Date: 2005-04-22T06:25:23+09:00 Subject: Re: [EVALUATION] - E03e - The Ruby Object Model (Summary) Hi -- On Fri, 22 Apr 2005, Yukihiro Matsumoto wrote: > Hi, > > In message "Re: [EVALUATION] - E03e - The Ruby Object Model (Summary)" > on Thu, 21 Apr 2005 23:29:31 +0900, Ilias Lazaridis writes: > > |I hope the responsible person has more courage. > > I may be the responsible person. > > I assume your question is why there's no method to obtain singleton > class (per object hidden class), right? That's because I see no real > "need" for it. > > Besides seeing no real need, such method is highly connected to the > current implementation. Future Ruby (or different implementation of > Ruby interpreter) may want to choose other strategy, for example, > creating a temporary class-like object to manipulate singleton > methods, then update internal object structure according to that > class-like object. Under the implementation like this, a method to > obtain singleton class has no meaning. What would: (class << obj; self; end) give you if there's no singleton class? David -- David A. Black dblack@wobblini.net