lua-users home
lua-l archive

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


On Mon, Sep 11, 2017 at 9:34 AM, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
> [bla-bla-bla] Anyway, there would be no need to push an upvalue to the
> stack.

The manual says: "all functions are created sharing nup upvalues,
which must be previously pushed on the stack". So, if you are going to
interpret the manual literally, you do need to push an upvalue to the
stack.


Perhaps it is confusing because all other mention of "share" w.r.t. upvalues is in contrast to "fresh" upvalues.

e