if(arr) now a warning

Daniel Murphy via Digitalmars-d digitalmars-d at puremagic.com
Fri Apr 10 04:33:47 PDT 2015


"Martin Krejcirik"  wrote in message 
news:zcyuydcpyfjrbojzjusg at forum.dlang.org...

> I agree, people should just use arr.length. I would leave it as it is now, 
> that is forever warning on if (arr).

Yeah, even if we never get to deprecation/error/change of semantics the 
warning will be an improvement. 



More information about the Digitalmars-d mailing list