Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!kddlab!titcca!sragwa!wsgw!socslgw!diamond!diamond From: diamond@diamond.csl.sony.junet (Norman Diamond) Newsgroups: comp.lang.c Subject: Re: lint won't verify printf formatting against variable types?? Message-ID: <10501@socslgw.csl.sony.JUNET> Date: 6 Jul 89 07:53:14 GMT References: <16399.24B11BBE@urchin.fidonet.org> Sender: news@csl.sony.JUNET Reply-To: diamond@csl.sony.junet (Norman Diamond) Organization: Sony Computer Science Laboratory Inc., Tokyo, Japan Lines: 16 In article <16399.24B11BBE@urchin.fidonet.org> Bob.Stout@p6.f506.n106.z1.fidonet.org (Bob Stout) writes: >As to `if (x = 5)', I >thought most C programmers nowadays always wrote the constant part of a >logical comparison on the left side as a regular issue of style. And what about `if (x = y)' ? Even when one of those is a constant, sure some PROTECTION is obtained by reversing the operands, but not STYLE. -- Norman Diamond, Sony Computer Science Lab (diamond%csl.sony.jp@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.