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.
--
Ola Bini (http://olabini.com)
Ioke creator (http://ioke.org)
JRuby Core Developer (http://jruby.org)
Developer, ThoughtWorks Studios (http://studios.thoughtworks.com)
Practical JRuby on Rails (http://apress.com/book/view/9781590598818)
"Yields falsehood when quined" yields falsehood when quined.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email