On 1 November 2016 at 15:14, Soni L. <fakedme@gmail.com> wrote:
Would be nice if debug.getinfo(1, 'd') and debug.getinfo(1, 'D')
respectively returned a number with the call stack position (from the bottom
of the stack i.e. the last stack element would have position 1) and an
userdatum which can be used with debug.getinfo (and other debug.* functions)
to retrieve the stack data in O(1) rather than O(n) time (as long as the
stack position remains valid).
This would also be useful for Lua debuggers. I suggested an approach
for providing this information in the following post:
http://lua-users.org/lists/lua-l/2016-10/msg00118.html
Regards