[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: For loops and closures
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 29 Apr 2003 13:10:35 -0300
> However, if the internal variables are hidden from the Lua program, there
> is no need to do the checks on each iteration; it could be done in an
> OP_FORPREP opcode.
This is true only if your code was correctly generated by Lua. A
"generic" binary code may change this hidden values during the looop.
-- Roberto