[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Definion of 'for' statement in the manual
- From: Coda Highland <chighland@...>
- Date: Sat, 26 Sep 2015 11:20:30 -0700
On Fri, Sep 25, 2015 at 6:13 AM, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
>> My question:
>>
>> Why does Lua 5.3's reference does "var = var - step" instead of simply
>> moving the "var = var + step" after "block" (as in Lua 5.2)?
>
> This is how it is implemented, and both ways can give different results.
> (That it is why we do not like to specify things with code, it gives too
> much details that should be left open.)
>
> -- Roberto
>
How could both ways give different results?
/s/ Adam