[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Bit manipulation functions (was: More on environments and objects)
- From: Rici Lake <lua@...>
- Date: Sat, 27 Aug 2005 12:42:44 -0500
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
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.