lua-users home
lua-l archive

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




On 07/11/16 09:49 AM, Dibyendu Majumdar wrote:
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

Well... I plan on using it for virtualization, actually...

But yes, it would be useful for debuggers.

--
Disclaimer: these emails may be made public at any given time, with or without reason. If you don't agree with this, DO NOT REPLY.