Modifying a Closure in 5.0 Alpha
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Modifying a Closure in 5.0 Alpha
- From: "Peter Loveday" <peter@...>
- Date: 2002年8月21日 11:01:58 -0400
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.
Thanks.
Love, Light and Peace,
- Peter Loveday
Director of Development, eyeon Software