(no title)
ufo | 2 months ago
https://www.lua.org/manual/5.3/manual.html#3.3.5
The loop count was fixed at the start of the loop. One of the reasons for this was performance. For loops behave differently if the step count is positive or negative, and it's a bit faster to compute that once, before the loop, than to repeat it every iteration.
No comments yet.