Make if statement with stricter test

Davidl Davidl at 126.com
Thu Apr 19 08:48:00 PDT 2007


if(AA) <-- invalid

char[][char[]] k;
if (k) // this code should be invalid, cause it could strongly be a typo  
or some porting mistake from some
C source

I hope if(identifier) only work for Bool & Pointer types



More information about the Digitalmars-d mailing list