lua-users home
lua-l archive

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


On vie, 2011-08-12 at 09:48 -0700, marbux wrote:
> "To load and run a given string, use the idiom
> 
>      assert(loadstring(s))()
> 
> ... the execution is performed by the callback?

The execution is done by the parentheses you see at the end of the line.
It's the usual function call, they say "take whatever is before us, and
invoke it as a function".


Jorge.