To help LDC/GDC

Dicebot m.strashun at gmail.com
Tue Apr 9 00:53:22 PDT 2013


On Tuesday, 9 April 2013 at 07:11:02 UTC, Jacob Carlborg wrote:
> On 2013-04-09 05:30, Walter Bright wrote:
>
>> In C++, it is legal to cast away const and mutate it. That is 
>> undefined
>> behavior in D.
>
> Didn't they change how const behaves in C++11, I'm thinking of 
> this:
>
> http://channel9.msdn.com/posts/C-and-Beyond-2012-Herb-Sutter-You-dont-know-blank-and-blank

Yes, but it is changed only for multi-threaded code (because the 
very concept of concurrency is defined first in C++11). 
Single-thread semantics remain the same.


More information about the Digitalmars-d mailing list