[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: debug.getlocal losing information
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 7 Jul 2010 13:12:44 -0300
> >
> >Lua 5.2 does not have these empty levels
> >anymore, only a bit telling that from level X to level X+1 there has
> >been removed frames.
> Why? The old behavior seems more logical. Now we would have to worry
> about tail calls when we pass a stack level to 'error' function?
Both options have its drawbacks. The new behavior is closer to what
is actually happening in the interpreter.
> Or is there going to be something like absolute stack levels, instead
> of current relative stack levels?
That would be good if we had used negative values for relative stack
levels, as in the C API.
-- Roberto