On Wed, Mar 6, 2013 at 3:02 PM, Hans Mackowiak <[email protected]> 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/ -- [email protected] | https://groups.google.com/d/forum/ruby-talk-google?hl=en --- You received this message because you are subscribed to the Google Groups "ruby-talk-google" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
