2015-10-07 14:43 GMT+02:00 Soni L. <fakedme@gmail.com>: A table of upvalue objects (the ones you get from newupval())? 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.
Upvalue names are only available if debug data has not been stripped. |