"Aaron Ardiri" <[EMAIL PROTECTED]> wrote in message
news:61282@palm-dev-forum...
>
> On Thu, 30 Aug 2001, Igor Mozolevsky wrote:
> > Hi,
> > technical question, why is NULL defined as:
> > #define NULL 0
> > instead of
> > #define NULL ((void*)0)
>
> the compiler isn't so strict? :) heh
The C standard allows NULL to be defined either way, but the C++
standard requires 0 or 0L. C++ doesn't allow automatic conversion from
void * to another pointer type, but the language requires 0 to be
treated as a NULL pointer always.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/