lua-users home
lua-l archive

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


> 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.