[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How to execute a string in v. 5.2?
- From: marbux <marbux@...>
- Date: Fri, 12 Aug 2011 09:48:00 -0700
On Fri, Aug 12, 2011 at 8:54 AM, liam mail <liam.list@googlemail.com> wrote:
>
>
> On 12 August 2011 16:42, marbux <marbux@gmail.com> wrote:
> You are mistaken. loadstring [1] in 5.1 does not run the code yet returns a
> closure just the same as load [2] returns.
> [1] http://www.lua.org/manual/5.1/manual.html#pdf-loadstring
> [2] http://www.lua.org/work/doc/manual.html#pdf-load
Thank you for setting me straight. I misunderstood the documentation
in the 5.1 manual. So in its example:
"To load and run a given string, use the idiom
assert(loadstring(s))()
... the execution is performed by the callback?
Sorry for the questions but my programming skills are not that far
beyond "Hello, World."
Best regards,
Paul