lua-users home
lua-l archive

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


> On Tuesday, August 13, 2013 04:45:53 PM AllanPfalzgraf@eaton.com wrote:
> > You may call me silly, but shouldn't the integer size in luaconf.h
> > establish the integer size in lbitlib.c?
> 
> I think it would be silly for the 'bit32' library to work on something other 
> than 32-bit integers.

Of course, the library could have a different name. The main problem
is that the integer size in luaconf.h does not change the fact that,
internally, Lua (up to 5.2) works with floatint-point double numbers,
which have only 53 significant bits. So, even with a 64-bit integer
size, the library would not be able to manipulate 64-bit quantities.
(And it would be strange a 'bit53' library :)

-- Roberto