[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: luac and dumping code
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sat, 6 Oct 2001 10:49:59 -0300
>> In 4.1, you have loadfile and loadbuffer leave precompiled stuff in the stack.
>> If you want the exact binary representation used by luac, use ldumplib.c in
>> src/luac.
>
>In what form does this leave the code on the stack? -- loadfile/buffer seems
>to leave a Closure* and the ldumplib is doing something odd with luaM_buffer
>or something.
loadfile/buffer leaves an ordinary Lua function representing the chunk loaded.
ldumplib creates a Lua string containig the binary representation of the chunk.
--lhf