lua-users home
lua-l archive

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




On 12 August 2011 16:42, marbux <marbux@gmail.com> wrote:
Hi, all,

A newbie question about v. 5.2. The loadstring function apparently
will not be supported in v. 5.2. According to the draft manual, we'll
be able to load a string using load; but how may a loaded string be
executed in v. 5.2? That is functionality that is in loadstring in v.
5.1. I'd appreciate a command line example.

Thanks in advance,

Paul


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