Krzysztof Ciebiera:

Is the following compiler behavior consistent with language specification?

Changing elements during foreach is something to avoid, perhaps I'd like it to be statically forbidden. If you add to this the reference-struct nature of arrays, you get in troubles.

Bye,
bearophile

Reply via email to