[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Bitwsie operators in Lua
- From: Wim Couwenberg <w.couwenberg@...>
- Date: Mon, 19 Jun 2006 19:21:41 +0200
> Personally I find that about half the
> time when I want to use bitfields I end up overflowing the 32-bit
> ceiling anyway (in C this is), so you have to use non-basic types anyway.
And another shameless plug:
http://lua-users.org/lists/lua-l/2005-02/msg00641.html
Of course you can now use % instead of the math.mod call.
BTW: I replaced the "p + 1 == p" test by "p + 1 - p ~= 1" later.
The floating point purists will probably comment on that... :-)
--
Wim