Casting away const and invariant

Janice Caron caron800 at googlemail.com
Sun Sep 9 14:51:45 PDT 2007


> D's single cast syntax is rather a step backwards from C++.

D's single cast syntax dates from a time before there was const. If
there's no const, you don't need a const_cast. Only with the advent of
const in 2.0 do we start to encounter problems.



More information about the Digitalmars-d mailing list