Stroustrup's slides about c++11 and c++14

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Sun Sep 14 15:38:50 PDT 2014


On 9/14/2014 2:48 PM, deadalnix wrote:
> If that is really a concern, please consider commenting on
> http://wiki.dlang.org/DIP31

I haven't thought it through, but the DIP looks like a good idea.

It should add the test case in this thread,

   static if(!is(typeof(x))) enum y=2;
   static if(!is(typeof(y))) enum x=1;

as being something that is detected and rejected by the compiler.

Essentially, anything that is order-of-evaluation dependent should be detected 
and rejected.


More information about the Digitalmars-d mailing list