[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: compile a function
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 16 Jul 2007 13:10:21 -0300
> fun, err = loadstring(src) ...
> When I look into the generetade file, though, I found the entire source code
Try
fun, err = loadstring(src,"")
See
http://www.lua.org/manual/5.1/manual.html#pdf-loadstring
> I guess this mean that next time I reload the function the source code will be compiled and loaded.
No. It's just the "chunkname" used in error messages.
--lhf