lua-users home
lua-l archive

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

>>>>> "Philippe" == Philippe Verdy <> writes:

 Philippe> What is even worse is that the same page states

Why are you reading the online copy of PiL, which is for a long-obsolete
version of Lua, rather than the _actual documentation_?

This makes it perfectly clear that:

 - the actual loop iteration variables are hidden and not accessible

 - any changes to the visible loop variable in the loop body have no
   effect beyond the end of the current iteration

 Philippe> The doc is not clear about the behavior of a numeric for
 Philippe> loop, when the optional stepping value is zero

The actual manual (as linked above) is precisely clear about this.