2015-10-07 14:43 GMT+02:00 Soni L. <email@example.com>:
I did not think of that, no: it's just that lua_setupvalue returns thefunction's name for that upvalue, so it is easy to create a tableof actually supplied upvalues keyed by their names. Since theorder may be important, the names are keyed by 1,2,...This is the table format also used by some XML-to-Lua modules.
A table of upvalue objects (the ones you get from newupval())?
Upvalue names are only available if debug data has not been stripped.