lua-users home
lua-l archive

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

On Oct 7, 2015, at 7:33 AM, Dirk Laurie <> wrote:

2015-10-07 14:43 GMT+02:00 Soni L. <>:

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 the
function's name for that upvalue, so it is easy to create a table
of actually supplied upvalues keyed by their names. Since the
order 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.