lua-users home
lua-l archive

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

On Mon, Jul 4, 2011 at 12:30 AM, Xavier Wang <> wrote:
> 2011/7/4 Xavier Wang <>:
>> [...] In LuaJIT, the second parameter [to string.dump becomes] a strip flags that indicated to
>> strip the debug information of chunk or not. [[1]]

Related to that, this could be a good extension to also add in 5.2.
Such a patch was made in [2] and also suggested in [3] along with
workarounds (e.g. a pure Lua implementation of the bytecode editing).
This limitation currently complicates luac.lua [4], even more-so when
running it under interpreters other than lua 5.1.  (Personally, I
don't usually see much harm in debuginfo though.)

[1] - "string.dump(f [,strip]) "