Because the former is more portable. In C++, you can't assign a void* to
another type of pointer. So, using your second definition, you couldn't
say:
FormPtr myForm = NULL;
You'd have to cast it:
FormPtr myForm = (FormPtr) NULL;
-- Keith
-----Original Message-----
From: Igor Mozolevsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 5:11 PM
To: Palm Developer Forum
Subject: NULL & NIL
Hi,
technical question, why is NULL defined as:
#define NULL 0
instead of
#define NULL ((void*)0)
?
IM
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/