if(arr) now a warning

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Fri Apr 10 15:13:42 PDT 2015


On Friday, 10 April 2015 at 09:35:44 UTC, John Colvin wrote:
> As others have mentioned, why not make if(arr) be equivalent to 
> if(arr.length)? It seems that's what everyone actually wants 
> when they type it.

Yes, and the worst part of it all, is that it mostly works, so 
you may miss it when testing.


More information about the Digitalmars-d mailing list