lua-users home
lua-l archive

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


>It would be nice to be able to strip out the line number information as well.

luac -s does that: it strips line number information as well as the names
and scopes of local variables and the names of upvalues.

>I think Rici mentioned a while ago that his style of implementation
>preference would be to have a line information VM instruction, rather
>than embedded line information.

This is exactly how the line information is stored since Lua 4.0. It was one
of the major changes from Lua 3.2 (no more $debug!).

>It looks like quite a task to strip out line numbers from the current
>implementation though.

Which version are you using??
--lhf