Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!ncar!hsdndev!cmcl2!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: Funny mistake Message-ID: <15481@smoke.brl.mil> Date: 15 Mar 91 19:30:09 GMT References: <1991Mar13.125034.2825@st-andy.uucp> <13337@helios.TAMU.EDU> <8148@rsiatl.Dixie.Com> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 6 In article <8148@rsiatl.Dixie.Com> stan@Dixie.Com (Stan Brown) writes: >>"if (a = b)" instead of "if (a == b)". >... I have yet to see a UNIX compiler complain about it That's good, because it is valid C and the compiler cannot know whether or not it reflects the programmer's intentions.