Take the 2-minute tour ×

I know the composite operator is't necessary, but I really want it.

share|improve this question
Note that by patching Lua you lose compatibility with LuaJIT 2 and, well, the rest of the Lua world. Make sure that you have a really good reason before doing that in a commercial project. –  Alexander Gladysh Mar 28 '11 at 5:01

2 Answers 2

up vote 2 down vote accepted

Your first stop should be the power patches pages of the wiki, if that yields nothing, you can try searching through the mailing list archives, or asking on the mailing list its self.

I'm guessing you'll need to make this one yourself however, using the provided lua source, but the bitwise ops patch on the power patches pages shows you all the places you'd need to patch

share|improve this answer

Use metalua. It has a few of these operators built in, and its easy to add more.

Do note the loss of compatibility though.

share|improve this answer

Your Answer


