Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!decwrl!pa.dec.com!shlump.nac.dec.com!decuac!grebyn!ckp From: ckp@grebyn.com (Checkpoint Technologies) Newsgroups: comp.lang.c Subject: Re: Funny mistake Message-ID: <1991Feb27.000000.18657@grebyn.com> Date: 27 Feb 91 00:00:00 GMT References: Distribution: comp Organization: Grebyn Timesharing Lines: 22 In article wolfram@cip-s05.informatik.rwth-aachen.de (Wolfram Roesler) writes: >What I wanted to write was: > > if (fct(a,b,c)) > >but by mistake I wrote: > > if (fct(a,b),c) Well, if fct had had a non-varadic prototype in scope, then the compiler would have rejected it. If it had had a varadic prototype (variable number of arguments) then you still would be in bad luck. Lint would have warned you about it if c were actually a constant expression. Otherwise, yep, that's one of the curves C can throw. -- First comes the logo: C H E C K P O I N T T E C H N O L O G I E S / / \\ / / Then, the disclaimer: All expressed opinions are, indeed, opinions. \ / o Now for the witty part: I'm pink, therefore, I'm spam! \/