4 ms·
Prior to this release there was the option of using Mike Pall's (LuaJIT developer) BitOp C extension module[1] for Lua 5.1/5.2 if one wanted a cleaner way of pe
by otoburb 12y ago
Prior to this release there was the option of using Mike Pall's (LuaJIT developer) BitOp C extension module[1] for Lua 5.1/5.2 if one wanted a cleaner way of performing bitwise operations.
[1] http://bitop.luajit.org/ http://bitop.luajit.org/
- justincormack 12y agoLua 5.2 has bit operations too, but they are functions not operators.
- haberman 12y agoIt's unfortunate IMO that Lua didn't just adopt BitOp and its semantics. The different decisions made by the core Lua developers did not seem compelling to me. For example, one of the differences is that you can shift by a negative number with Lua (making the shift go in the opposite direction). Who ever needs to do that? This was all discussed at length on the lists, I don't have a link handy though.