[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: string.dump problems
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 23 Jul 2004 11:30:20 -0300
> The byte-code string.dump() generates seems to contain a copy of the
> text of the source passed to loadstring. I notice that neither luac or
> luac.lua seem to do this.
loadstring accepts an optional second argument that is the 'chunkname'.
If this argument is not present, loadstring uses the string itself and
so you get a copy of the source in the bytecode.
If you do not want this, call loadstring(s,"(noname)") or something.