From: Robert Klemme Date: 2013-03-07T00:27:25+09:00 Subject: Re: Bignum-Fixnum-Numeric confusion On Wed, Mar 6, 2013 at 3:02 PM, Hans Mackowiak wrote: > Robert Klemme wrote in post #1100376: > >>> (c) "There is effectively only one Fixnum object instance for any given >>> integer value, so, for example, you cannot add a singleton method to a >>> `Fixnum`." - Couldn't understand the reason of not to add the >>> `singleton` method with Fixnum object instances. >> >> I think the reasoning is flawed: the fact that there is only one >> instance of every Fixnum does by no means prevent associating >> singleton methods with the instance. For example, it's still possible >> to store instance variables in a Fixnum instance: > > i need to resay that this is not possible in 2.0 anymore ... so you dont > should depend on it I didn't say it's a good idea. :-) Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/