[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Yielding in Close Call through Vararg Return Changes Number of Returns
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 14 Apr 2021 13:25:27 -0300
> it seems that yielding in a close call when the variable is closed by a
> vararg return can mess up the number of arguments returned since after the
> yield the OP_RETURN is executed again, however, it changed L->top to
> ci->top before the close call and so after the yield in the second
> execution of OP_RETURN n = cast_int(L->top - ra); will result in a
> different n.
Many thanks for the report and the detailed analysis.