So, stuff like bit-shifting, or, flipping, turning bits on and off? How would one, if one could, do these things? [import]uid: 143007 topic_id: 26122 reply_id: 326122[/import]
Lua doesn’t natively contain a bit or byte type.
There are however some Lua modules that implement Bitwise operations:
http://lua-users.org/wiki/BitwiseOperators
Unless you are using Enterprise, you will need to stick with the Pure-Lua implementations, which are not as robust as the C implementations. [import]uid: 134101 topic_id: 26122 reply_id: 105775[/import]
There are a lot of bit ops libraries.
Here is the one which I use http://files.luaforge.net/releases/bit/bit [import]uid: 64174 topic_id: 26122 reply_id: 105778[/import]