Why D const is annoying

Mehrdad wfunction at hotmail.com
Sat Dec 10 03:10:01 PST 2011


On 12/10/2011 3:08 AM, bearophile wrote:
> Timon Gehr:
>
>> No, popFront is mutating and const(int[]) cannot be mutated.
> So, is it impossible by design to iterate immutable collections?
>
> Bye,
> bearophile

I believe the answer is yes (although Timon would probably know better).

That's one reason I believe const is broken...


More information about the Digitalmars-d mailing list