Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!decwrl!mcnc!uvaarpa!murdoch!astsun.astro.Virginia.EDU!gsh7w From: gsh7w@astsun.astro.Virginia.EDU (Greg Hennessy) Newsgroups: comp.lang.c Subject: Re: Funny mistake Message-ID: <1991Mar16.195153.15509@murdoch.acc.Virginia.EDU> Date: 16 Mar 91 19:51:53 GMT References: <13337@helios.TAMU.EDU> <8148@rsiatl.Dixie.Com> <15481@smoke.brl.mil> Sender: usenet@murdoch.acc.Virginia.EDU Organization: University of Virginia Lines: 17 #>>"if (a = b)" instead of "if (a == b)". #>... I have yet to see a UNIX compiler complain about it Doug Gwyn: #That's good, because it is valid C and the compiler cannot know whether #or not it reflects the programmer's intentions. Then perhaps that is why having an optional flag to inform the user of this sometimes suspicious code fragment may be a good idea. -- -Greg Hennessy, University of Virginia USPS Mail: Astronomy Department, Charlottesville, VA 22903-2475 USA Internet: gsh7w@virginia.edu UUCP: ...!uunet!virginia!gsh7w