Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!jarthur!nntp-server.caltech.edu!manning From: manning@nntp-server.caltech.edu (Evan Marshall Manning) Newsgroups: comp.lang.c Subject: Re: Function pointer casts in ANSI C Message-ID: <1990Nov30.010812.27070@nntp-server.caltech.edu> Date: 30 Nov 90 01:08:12 GMT References: <1990Nov29.110114.21565@diku.dk> <14610@smoke.brl.mil> Organization: California Institute of Technology, Pasadena Lines: 20 thorinn@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@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@gap.cco.caltech.edu opinions stated above are yours. You cannot | manning@mars.jpl.nasa.gov imagine why you ever felt otherwise. | gleeper@tybalt.caltech.edu