Remo Dentato ha scritto:
fun, err = loadstring(src)
...
file:write(string.dump(fun))
Sorry, forgot to mention that if, following luac.lua example, I use:
tf:write(src)
...
fun, err = loadfile(t)
...
file:write(string.dump(fun))
(where tf is a file open with name t) everything works as intended. I was trying to avoid external files too.
Thanks,
Remo D.