How can I implement bitwise operators in Lua language? Specifically, I need a XOR operator/method.
If you're needing an efficient way to do bitwise shifts, I wrote an article about that a while ago. Here's some functions which wrap the technique:
function lshift(x, by) return x * 2 ^ by end function rshift(x, by) return math.floor(x / 2 ^ by) end