[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Function dump stripping doesn't affect start/end line numbers
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 5 May 2017 09:02:52 -0300
> I've noticed that the function's linedefined/lastlinedefined fields
> are always dumped in DumpFunction, regardless of D->strip. Is there a
> reason for not e.g. replacing them with 0 or -1 if stripping is
> enabled?
I think it's supposed to provide minimal indication of where an error
occurred, even for stripped bytecode. See
http://lua-users.org/lists/lua-l/2014-02/msg00228.html
The fields are already there, replacing them with 0 or -1 would not save
any space, which is the main motivation for stripping.