if(arr) now a warning

Daniel Murphy via Digitalmars-d digitalmars-d at puremagic.com
Thu Apr 30 05:32:40 PDT 2015


"Vladimir Panteleev"  wrote in message 
news:swjdkyjsurpjdqrvqonq at forum.dlang.org...

> I don't know. The one in std.exception is probably due to an array being 
> used as a condition for enforce.

Yep, that's not nice.  From what I can see the warning in the template 
constraint is ignored, and so the call succeeds.  I don't know how to force 
a failure there with a warning. 



More information about the Digitalmars-d mailing list