What guarantees does D 'const' provide, compared to C++?

bearophile bearophileHUGS at lycos.com
Thu Aug 16 17:13:56 PDT 2012


Mehrdad:

>> On the note of casting away const, I don't believe that is the 
>> operation which is undefined, however modifying const is 
>> undefined as it could be pointing to immutable data.
>
> Oh, then that's not what I'd understood. Seems just like C++ 
> then.

Are you sure?

bye,
bearophile


More information about the Digitalmars-d mailing list