> is this appropriate source for Lua, e.g. the bit operators, or are they > posing a problem somewhere? What do you mean by "appropriate"? The C code that implements Lua does use bit operators, doesn't it?