lua-users home
lua-l archive

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



18.12.2011 6:23, "Xavier Wang" <weasley.wx@gmail.com>:
>
> i'm run lua on a embedded system, embedded systemembedded system, nokia n73 cellphone. my game will lag if i allocate memory in draw function since the garbage collection. so we avoid any memory in event loop. but i really miss the contains function, so i think a syntax allow use function as infix operator will be great.
>
> e.g. if i have a function add(a, b), i can call it with a `add` b, its a syntax sugar of add(a,b)

If you can load bytecode on your embedded device, or can afford slower compilation of scripts, try Metalua. It supports exactly the syntax you want, see http://metalua.luaforge.net/manual003.html#toc3