lua-users home
lua-l archive

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

On Mon, Jan 3, 2011 at 10:30 PM, Devon Strawn <> 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.