lua-users home
lua-l archive

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



On 23.11.2012 8:42, Rena wrote:
I once hacked up some metatable magic to allow writing pseudo-infix
operators like:

x = ((4) '<<' (3)) '|' (y)


I made it this way with a metatable:
(4):And(3):Or(y)
I didn't implement '<<', so here I replaced it with And.

--
Best regards,
Sergey Rozhenko                 mailto:sergroj@mail.ru