if(arr) now a warning

Martin Krejcirik via Digitalmars-d digitalmars-d at puremagic.com
Fri Apr 10 04:03:51 PDT 2015


On Friday, 10 April 2015 at 10:30:13 UTC, Daniel Murphy wrote:
> if (arr.length) is just as clear, and the same thing.

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


More information about the Digitalmars-d mailing list