lua-users home
lua-l archive

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

On Fri, Aug 12, 2011 at 9:55 AM, Jorge <> wrote:
> 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".

Very cool. This should solve one project headache. Thank you.

Best regards,