From: Robert Dober Date: 2011-03-27T00:49:53+09:00 Subject: Re: How to get the value of a singleton class? On Sat, Mar 26, 2011 at 1:15 PM, Aaron D. Gifford wrote: > On Sat, Mar 26, 2011 at 4:44 AM, Robert Dober wrote: > That just seems right. I do not really have a problem with this. However I feel that it is really not for the language to decide if I want to do this or not. The more restrictive way does not give me the opportunity to use closures easily in my classes while it would still allow *not* to use them. BTW I am quite convinced that this is not a design choice, but I am prepared to stand corrected, I rather think that it is quite a bit of work to implement this without performance hits and as I do not really recall [1] any demand of this I am not surprised that it is not implemented. [1] IIRC Zed Shaw asked once why the heck def ... end could (i) not be a closure and (ii) return the unbound method object. I would like this very much, but I will not get it, I guess. Cheers Robert > > Aaron out. > > -- The 1,000,000th fibonacci number contains '42' 2039 times; that is almost 30 occurrences more than expected (208988 digits). N.B. The 42nd fibonacci number does not contain '1000000' that is almost the expected 3.0e-06 times.