What does C++ do better than D? - StackOverflow.com

Walter Bright newshound2 at digitalmars.com
Tue Aug 2 17:08:13 PDT 2011


On 8/2/2011 3:00 PM, Marco Leise wrote:
> Hmm yes, that cannot be argued. But you can go with the undefined behaviour
> resulting in casting away const in D. Isn't that the same category?

Not exactly:

1. Undefined behavior is just that, undefined. In C++, it is defined behavior 
and must be supported.

2. In safe mode in D, you cannot cast away const.


More information about the Digitalmars-d mailing list