Of course, more discriminating programmers write:
if(NULL==something)
do_something_else();
Because they learn that they sometimes type "=" instead of "==".
And type-casting C++ fanatics sometimes even type
FunkyType* something;
...
if((FunkyType*)NULL==something)
do_something_else():
But there are limits :)
----- Original Message -----
Something like depending on NULL being all-bits-zero .. like in:
if (!something)
do_something_else();
It would be more correct to write:
if (something==NULL)
do_something_else();
... just a guess :)
----
Tom Frauenhofer, Tom Frauenhofer/Watson/IBM@IBMUS, [EMAIL PROTECTED]
Senior Software Engineer, eBusiness Frameworks, IBM Research
Phone: 914-784-7698 (Tie: 8/863-7698)
Fax: 914-784-3804 (Tie: 8/863-3804)
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/