lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> > The fact that most people should not bother with this difference was
> > the initial motivation to put the distinction in the debug library.
> > 
> 
> Will this remain true if (when?) the bit operator library gets extended to 64 bits? So far as I understand it, values between 2^52 and 2^64 are going to be a gray area in this case, since the "same" numeric value will behave differently depending on if its held as an integer or floating point?

You do not need bit operators for that. As an example, for any x in this
gray area, (x + 1 == x) is true iff x is held as a float. My point is
that, most of the time, numbers will have the "expected" type, mainly
when they are in this gray area.

-- Roberto