lint won't verify printf formatting against variable types??

Norman Diamond diamond at diamond.csl.sony.junet
Fri Jun 30 13:25:56 AEST 1989


In article <105 at borabora.omni.com> bob at omni.com (Bob Weissman) writes:

>Last week I spent an entire day tracking down one of those bugs you just
>don't see after staring at your code too long.  It was of the form:
>	if (condition);
>	    action;
>My lint (SunOS 4.0.1 version) did not flag the extra semicolon.
>
>I Hate C.

This is one of many defects in C, but remember that C used to be
experimental and remember what its predecessors were like.  C was one
of the world's best programming languages 15 years ago.  You should
not hate C.  You should only hate the people who force us to continue
using it, 15 years after such defects are known.

--
Norman Diamond, Sony Computer Science Lab (diamond%csl.sony.jp at relay.cs.net)
 The above opinions are claimed by your machine's init process (pid 1), after
 being disowned and orphaned.  However, if you see this at Waterloo, Stanford,
 or Anterior, then their administrators must have approved of these opinions.



More information about the Comp.lang.c mailing list