I don't believe that removing elements from an AA while iterating over it is safe.- Jonathan M Davis
Well, no. But from my experience it's okay from bottom to top... at least in other languages. What would be the alternative? Maybe build a new array while iterating, and set it after the loop?