Function pointer casts in ANSI C
Evan Marshall Manning
manning at nntp-server.caltech.edu
Fri Nov 30 12:08:12 AEST 1990
thorinn at skinfaxe.diku.dk (Lars Henrik Mathiesen) writes:
>My question is: Can a conforming compiler generate a warning for casts
>(and arguments) that will ``go wrong'' but not for those that work?
gwyn at smoke.brl.mil (Doug Gwyn) writes:
>A conforming implementation must produce at least one diagnostic for each
>translation unit that violates a syntax rule or constraint. Diagnostics
>may be produced under other circumstances, but are not required.
My favorite lint (from Gimpel) would call those that work "non-portable",
and issue a more serious warning/error message for those that not will
work.
***************************************************************************
Your eyes are weary from staring at the CRT for so | Evan M. Manning
long. You feel sleepy. Notice how restful it is | is
to watch the cursor blink. Close your eyes. The |manning at gap.cco.caltech.edu
opinions stated above are yours. You cannot | manning at mars.jpl.nasa.gov
imagine why you ever felt otherwise. | gleeper at tybalt.caltech.edu
More information about the Comp.lang.c
mailing list