Ola Bini wrote:
Charles Oliver Nutter wrote:
I noticed this evening we don't cache literal floats in either the
interpreter or the compiler, but I could not remember why. I've
attached a patch that fixes this, but does anyone remember if there's
a reason why we couldn't cache floats? Are they mutable or something?
- Charlie
At first glance it does seem strange to not cache them. I can't remember
any reason for not doing it. The internal value is final, but they are
not immediate values so you can add instance variables to them, and so on.
I say cache them and see if the RubySpecs break.
Yeah, with the caching in place all our tests pass and all the same
RubySpecs pass. I think I'm going to go with it; if it does something
unusual it's only going to affect the weirdest edge cases.
- Charlie
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email