2 ms·
Lua exposes much less of its internals than Python. For example the comment you replied to mentioned stack frames which are not exposed in Lua.
by fanf2 6y ago
Lua exposes much less of its internals than Python. For example the comment you replied to mentioned stack frames which are not exposed in Lua.
- anonymoushn 6y agoThose are exposed via the built-in debug library, including in luajit.
- fanf2 6y agoOh whoops yes :-) Note that you can only look up variables by their bytecode register number, not by name.
- jashmatthews 6y agoIIRC that uses the Lua C API which LuaJIT supports by fully restoring the interpreter state?