lua-users home
lua-l archive

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


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.


Make every IM count. Download Windows Live Messenger and join the i'm Initiative now. It's free.   Make it count!