lua-users home
lua-l archive

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


>Another solution might be to serialise any Lua modifications as source text.
>eg. if you create a closure, remember the function source string in a table

dostring already remembers source text:

 dostring"function f() print'1' end"

 local a=getinfo(f)
 print(a.source)

--lhf