lua-users home
lua-l archive

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


so could I write

> inject "math" sandbox

too?  Does it only work for one parameter functions or is it purely stack
based?

Regards

---------------------------------
Q-Games, Dylan Cuthbert.
http://www.q-games.com

"Peter Shook" <[email protected]> wrote in message
[email protected]">news:[email protected]...
>
> Dylan Cuthbert wrote:
> > A Lua question, why isn't the syntax inject( "math" )( sandbox )... why
is
> > it inject "math"( sandbox )?
>
> It can be either.  f"string" is sugar for f("string").
>
> - Peter
>
>