[Date Prev][Date Next][Thread Prev][Thread Next]
- 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 <firstname.lastname@example.org> 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!