lua-users home
lua-l archive

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


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).

--
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.