gcc and NULL function pointers.
Doug Gwyn
gwyn at smoke.brl.mil
Thu Jun 27 04:39:19 AEST 1991
In article <17605.Jun2607.39.3591 at kramden.acf.nyu.edu> brnstnd at kramden.acf.nyu.edu (Dan Bernstein) writes:
>So it's better to stop the bugs---and possibly crashes---in nine cases
>out of ten than to pretend that all programs conform to the standard. Right?
No, it's better to detect coding errors as soon as possible so they can
be remedied. Anyone porting crappy code is being unreasonable to think
that it "works" just because he doesn't NOTICE any errors in it. I'm
not concerned with crappy code, but rather with correct code.
>By the way, I'm curious: Why is ((char *)0) ``simply wrong''?
Because it is! It doesn't have the right properties (automatic coercion
into other pointer types, for example).
More information about the Comp.std.c
mailing list