Confused about const

bearophile bearophileHUGS at lycos.com
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 :-)

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list