Confused about const

bearophile bearophileHUGS at
Fri Mar 19 19:25:15 PDT 2010

> I'm not sure if this is completely right nor if I'm completely clear, 
> though... :)

I think you are right.
In practice to copy something const to something that's not const you need a deep copy function, because inside the array there can be other arrays that are const, etc. Transitive const requires transitive copy, it's easy :-)


More information about the Digitalmars-d-learn mailing list