"Tom Frauenhofer" <[EMAIL PROTECTED]> writes: > And type-casting C++ fanatics sometimes even type > > FunkyType* something; > ... > if((FunkyType*)NULL==something) > do_something_else():
Nah, a type-casting C++ fanatic would not do that. It would be if (static_cast<FunkyType*>(NULL) == something) As for putting the NULL first to protect against = vs. == errors, that's what gcc's -Wparentheses is for. -- Dave Carrigan ([EMAIL PROTECTED]) | Yow! Is this sexual intercourse UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | yet?? Is it, huh, is it?? Seattle, WA, USA | http://www.rudedog.org/ | -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
