[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [LuaJIT] incompatibly of string.dump with Lua5.1.4's
- From: David Manura <dm.lua@...>
- Date: Mon, 4 Jul 2011 14:17:53 -0400
On Mon, Jul 4, 2011 at 12:30 AM, Xavier Wang <weasley.wx@gmail.com> wrote:
> 2011/7/4 Xavier Wang <weasley.wx@gmail.com>:
>> [...] 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] http://luajit.org/extensions.html - "string.dump(f [,strip]) "
[2] http://lua-users.org/lists/lua-l/2010-01/msg00199.html
[3] http://lua-users.org/lists/lua-l/2008-02/msg01117.html
[4] http://lua-users.org/wiki/LuaCompilerInLua