lua-users home
lua-l archive

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


On Wed, Jul 27, 2016 at 3:29 PM, Javier Guerra Giraldez <javier@guerrag.com> wrote:
On 27 July 2016 at 11:59, Egor Skriptunoff <egor.skriptunoff@gmail.com> wrote:
> Lua debugger should be able to display values of vararg even if they are not
> used in the function.

I think it's more important to let the compiler not to compile unused resources

Are you talking about unused arguments elimination?
IMO, such optimization is pointless as it is almost never useful in final code.

On the contrary, debugging of incompletely-written-functions is a common case.
It is usual practice to comment out some parts of function's body while searching for programming mistakes.
As a result, some arguments may become unused; and message like "vararg: empty" (instead of list of actually passed values) in Lua debugger would be very misleading.