Iterate over an array while mutating it?

bearophile bearophileHUGS at lycos.com
Fri Mar 28 04:11:38 PDT 2014


Anh Nhan:

> Ah, that the foreach caches the entries would make sense.

What does it mean "foreach caches the entries" for you? Foreach 
does very little. It is light syntax sugar over a normal for loop.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list