Lua has no binary relational operators, but looks like it could be useful for some low-level calculations, so I've added the "Bitwise operators and hexadecimal support" patch from http://lua-users.org/wiki/LuaPowerPatches and it will be available in the next release, maybe this weekend. Of course, shift operators need no patch, because x << y == x * math.pow(2, y) and x >> y == math.floor(x / math.pow(2, y)).
Shine wrote:Lua has no binary relational operators, but looks like it could be useful for some low-level calculations, so I've added the "Bitwise operators and hexadecimal support" patch from http://lua-users.org/wiki/LuaPowerPatches and it will be available in the next release, maybe this weekend. Of course, shift operators need no patch, because x << y == x * math.pow(2, y) and x >> y == math.floor(x / math.pow(2, y)).
Cool! That would solve most of my lua p-sprint problems at the same time.