[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.4's OP_RETURN, C operand
- From: Bas Groothedde <lua@...>
- Date: Tue, 28 Sep 2021 15:33:31 +0200
> On 28. Sep 2021, at 14:26, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
>
> Did you see the notes in lopcodes.h?
>
> (*) In instructions OP_RETURN/OP_TAILCALL, 'k' specifies that the
> function builds upvalues, which may need to be closed. C > 0 means
> the function is vararg, so that its 'func' must be corrected before
> returning; in this case, (C - 1) is its number of fixed parameters.
>
> -- Roberto
Ah I totally missed that, thank you!
~b