C++ definition of NULL
Chad Gatesman
chadg@redrose.net
Tue Mar 2 21:30:00 GMT 1999
Doug Semler wrote:
> Correct ,me if I'm wrong, but the standard says NULL is implementation
> defined, with
> (footnoted) possible values being 0 or 0L but not (void *)0
This is correct.
> You should cast, you shouldn't implicitely convert pointers to integers any
> more.... :)
The standard does not say this. If NULL is defined as they suggested, one
would be able to be implicitly casted to a long. I would hate to have to go
thru 1 million+ lines of code just to cast all occurances of NULL and force
users of the library to do the same.
Chad Gatesman
More information about the Gcc
mailing list