[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: At the edge of LNUM patch
- From: Mark Hamburg <mhamburg@...>
- Date: Tue, 25 Mar 2008 09:36:22 -0700
The patch should kick out of the integer realm at the boundary of
floating-point precision not at the boundary of integer precision. Thus,
calculating 2 ^ 63 should result in the value being stored as a double even
though it could fit into a 64-bit integer.
This still gets you a lot more integer precision than a lot of code is used
to working with since 32-bit integers are more or less the norm.
If one were to make this change, then I think it would achieve the property
that Lua's execution would be indistinguishable whether the patch was
installed or not which I think would be a good thing.