Inherited const when you need to mutate

bearophile bearophileHUGS at lycos.com
Mon Jul 9 18:41:27 PDT 2012


David Piepgrass:

> This use case is pretty complex, so if I port this to D, I'd 
> probably just cast away const/immutable where necessary.

You are not the first person that says similar things. So D docs 
need to stress more than casting away const/immutable in D is 
rather more dangerous than doing the same thing in C++.

Bye,
bearophile


More information about the Digitalmars-d mailing list