lua-users home
lua-l archive

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

In Lua 5.1, 5.2, and 5.3, the reference manual included pseudocode
trying to explain the semantics of for loops:

As you can see, changing the declared loop control variable v does not
affect the actual control variable var, which is an ordinary local
variable that is hidden. Check out also the bytecode listing for say
`for i=1,10 do print(i) end`.