[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Problem with description for OP_TFORLOOP?
- From: roberto@... (Roberto Ierusalimschy)
- Date: Tue, 14 Mar 2006 16:04:51 -0300
On Sun, Mar 12, 2006 at 01:18:05AM +0800, Kein-Hong Man wrote:
>
> it looks like the description for OP_TFORLOOP in lopcodes.h is
> incorrect. The description as it appears in the Lua 5.1 sources is:
>
> R(A+3), ... ,R(A+3+C) := R(A)(R(A+1), R(A+2));
> if R(A+3) ~= nil then { pc++; R(A+2)=R(A+3); }
>
> Should it be like this?
>
> R(A+3), ... ,R(A+2+C) := R(A)(R(A+1), R(A+2));
> if R(A+3) ~= nil then { R(A+2)=R(A+3); } else { pc++; }
>
Sure. Thanks for the feedback.
-- Roberto