Casting away const and invariant
Lutger
lutger.blijdestijn at gmail.com
Sun Sep 9 14:22:05 PDT 2007
Janice Caron wrote:
>> It may well be necessary; if it is, the behaviour must be defined
>> so that it _works_.
>
> No, it's undefined for a reason. It should stay undefined.
Just to be clear: I assume the behavior of casting away const and then
reading the ex-const variable is defined, otherwise it doesn't make much
sense. The only thing undefined is writing a const casted variable.
More information about the Digitalmars-d
mailing list