in reply to Re: changing array size in foreach loop: is it safe?
in thread changing array size in foreach loop: is it safe?

That's not the behavior the OP was seeing, so you definitely can't rely on it. The iterator will process elements that were added on to the end of the array within the loop.

Caution: Contents may have been coded under pressure.
  • Comment on Re^2: changing array size in foreach loop: is it safe?