Couple questions about operator overloading:
- Any gotchas that I should be aware of in overloading the modulo (%) and greater-than (>) operators? Ideas of how I would use this are on the bluash wiki (Piping, and String Operations -- no implementation yet). I would have preferred >> or << as operators, like in C++, hence my next question.
- 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)? Would it be rather straightforward to extend Lua DLL code? (I have lots of exp in C++, but never looked at the Lua C code).
Cheers,
Oliver