Originally Posted by Rainrider
What is the difference between "needed in all iterations" and "needed in each independent iteration"?
|
To explain this simply, every single time code in a loop is run is considered a single iteration of the loop. All locals defined inside a loop only exist in a single iteration independent of all the others that may be run. As an example, a loop that runs code 5 times has 5 iterations whose scope is independent of each other.