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 <> 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,


You are mistaken. loadstring [1] in 5.1 does not run the code yet returns a closure just the same as load [2] returns.