SIZEOF

Doug Gwyn (VLD/VMB) gwyn at Brl-Vld.ARPA
Sun Feb 10 10:00:13 AEST 1985


There is no way, with separate compilation of modules, that a current
C compiler can determine what pointer type to coerce a 0 function
argument to, which is why the programmer must do this himself.  In the
draft ANSI C standard, if a function prototype is specified then it
will indeed be possible (and required) that the compiler coerce an
argument to the right type.  Actually, some of us don't like this
since it hides coding errors; it would be nice if the compiler (or
at least lint) could give a warning when this coercion was done.



More information about the Comp.lang.c mailing list