lua-users home
lua-l archive

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

Is there any way I can add 'upvalues' to a closure in Lua 5.0 Alpha?

I have previously pushed a C closure with a single 'upvalue' onto the stack,
and I now wish (in a separate piece of code) to get that function, add an
extra upvalue to it and push it again.

So I either need a means to add an extra value to the existing closure, or
query the previously pushed function and values, then re-push it all with an
extra one.


Love, Light and Peace,

- Peter Loveday
Director of Development, eyeon Software