lua-users home
lua-l archive

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


> 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