lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Thx I'll check it out!

On Sun, Nov 4, 2012 at 3:04 PM, Gavin Wraith <> wrote:
In message <>
you wrote:

>    2. How difficult is it to extend Lua to support new binary operators?
>    Beyond defining the symbol, the associated metamethod name, the precedence
>    relative to other operators, and left/right association, is there a lot
>    more to it (notionally)?

Stuff in ltm.c and ltm.h.

RiscLua adds bit-twiddling operators &,|,^^,~,>>,<< . Sources at .
Search on "#ifdef GCW_BIT" for relevant lines.

Gavin Wraith (
Home page: