Confused about const

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

Paul D. Anderson:
>     S x = cast(S) a;
>     S y = cast(S) b;

In Java (especially old Java) casts may be common, but in D they are something that has to be used with care, don't cast away things carelessly :-)


More information about the Digitalmars-d-learn mailing list