if(arr) now a warning

Daniel Murphy via Digitalmars-d digitalmars-d at puremagic.com
Fri Apr 10 03:32:50 PDT 2015


"John Colvin"  wrote in message news:vhujlbdtjodfvrmwckrl at forum.dlang.org...

> 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.

That's the long term idea, but an immediate change would break code. 



More information about the Digitalmars-d mailing list