if(arr) now a warning

Kagamin via Digitalmars-d digitalmars-d at puremagic.com
Thu Apr 30 00:44:30 PDT 2015


On Wednesday, 29 April 2015 at 17:35:58 UTC, Andrei Alexandrescu 
wrote:
> I have no doubt the change can find certain errors. Problem is 
> false positives. FWIW these are the changes I had to operate on 
> std.allocator to make it work with the new compiler.

That code is contrived, confusing and consequently bug-prone, I'd 
say compiler complaints are legit in those cases, they are not as 
false positive as you want to make it look like. All in all your 
argument is quite biased and impractical.


More information about the Digitalmars-d mailing list