[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: No filenames in traceback, only 'string ["..."]'
- From: Peter Cawley <lua@...>
- Date: Mon, 3 Jan 2011 22:32:36 +0000
On Mon, Jan 3, 2011 at 10:30 PM, Devon Strawn <email@example.com> wrote:
>> This should work. Can you please show us the bytecode?
> Hi Luiz, attached is the bytecode resulting from lua_dump() of
> 'strict.lua' source compiled by luaL_loadstring().
If you load something with luaL_loadstring, then you're giving it a
'string ["...."]' name. Dumping and loading it again will preserve the
name you first gave it.