if(arr) now a warning

Temtaime via Digitalmars-d digitalmars-d at puremagic.com
Fri Apr 10 00:13:30 PDT 2015


Using an array type in boolean contexts is bug-prone.
Please just write « arr.length » of anything you want.
If you want to see a reasons to forbid it - look at original bug 
report.


More information about the Digitalmars-d mailing list