gcc and NULL function pointers.

Norman Diamond diamond at jit533.swstokyo.dec.com
Mon Jun 10 17:31:25 AEST 1991


In article <1991Jun10.061202.25199 at kithrup.COM> sef at kithrup.COM (Sean Eric Fagan) writes:
>In article <4641 at inews.intel.com> bhoughto at pima.intel.com (Blair P. Houghton) writes:
>>Better, su to root and erase the `(void *)' part.  The most
>>general, and therefore most valuable, way to define NULL is
>>to simply map it to the digit 0.
>
>This does not handle the case where a prototype is not in scope.  E.g.
>	void
>	foo() {
>		bar(NULL);
>	}

Yes indeed, the best way to implement a processor for the language does not
handle the case where a programmer doesn't know how to use the language.
So what?
--
Norman Diamond       diamond at tkov50.enet.dec.com
If this were the company's opinion, I wouldn't be allowed to post it.
Permission is granted to feel this signature, but not to look at it.



More information about the Comp.std.c mailing list