common bugs in C programs

nevin.j.liber nevin1 at cbnewsc.ATT.COM
Wed Dec 27 09:01:38 AEST 1989


In article <7140.25959377 at urchin.fidonet.org> Bob.Stout at p6.f506.n106.z1.fidonet.org (Bob Stout) writes:
>
>If you make it a matter of style to write conditionals as (const == var)  
>rather than (var == const), your compiler will flag the error for you and make  
>your code *much* easier to debug. 

Also, just by using (var == const) instead of (const == var), you tend
not to make the mistake at all.
-- 
 _ __	NEVIN ":-)" LIBER  nevin1 at ihlpb.ATT.COM  (708) 979-4751  IH 4J-323
' )  )			 "We are almost into the '90s; *nothing* is weird."
 /  / _ , __o  ____	   -- Buzz Kelman, Newsman & Bluesman, WLUP, 7/28/89
/  (_</_\/ <__/ / <_	As far as I know, these are NOT the opinions of AT&T.



More information about the Comp.lang.c mailing list