Why D const is annoying

bearophile bearophileHUGS at lycos.com
Sat Dec 10 03:08:04 PST 2011


Timon Gehr:

> No, popFront is mutating and const(int[]) cannot be mutated.

So, is it impossible by design to iterate immutable collections?

Bye,
bearophile


More information about the Digitalmars-d mailing list