lua-users home
lua-l archive

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



On 27-Aug-05, at 12:27 PM, Mike Pall wrote:

I really want them for manipulating bits in numbers, not for
arbitrary-length bit strings. That's why I mentioned hex
numbers first. Limiting this to int32 is just fine for me
(e.g. for interfacing with C or certain low-level calculations).

As usual, the perception of what is best depends on the problem domain being examined.

Note that if you were using single precision floats for lua_Numbers, you would have 23 bits, not 32, or put another way, your Lua programs would mysteriously fail when the bit index was too high.

I'm going to shut up on this issue, too, at least until 5.1 is released.