Path: utzoo!news-server.csri.toronto.edu!rutgers!cbmvax!uunet!rsiatl!stan From: stan@Dixie.Com (Stan Brown) Newsgroups: comp.lang.c Subject: Re: Funny mistake Message-ID: <8148@rsiatl.Dixie.Com> Date: 15 Mar 91 01:17:36 GMT References: <1991Mar13.125034.2825@st-andy.uucp> <13337@helios.TAMU.EDU> Distribution: comp Organization: Dixie Communications Services Lines: 19 >Hell, I have no idea what "fct" is for; but that remains me my mistakes, >a VERY hard to catch one, because the string (see below) is still perfect >C code (like that above - no SYNTAX error there!) : >"if (a = b)" instead of "if (a == b)". >That's a REALLY disgusting error, >because the "C" compiler (at least under UNIX BSD 3.4) doesn't report it, >and the effect is to set "a" to be "b" and the "if" behaves depending of Some compilers will report this as a suspicous occurence. The one I think I remember this on is Zortech, but I have yet to see a UNIX compiler complain about it, The lint on my mchine doesn't complain eithe. I wonder if anybody's does ? -- Stan Brown P. c. Design 404-363-2303 Ataant Ga. (emory|gatech|uunet) rsiatl!sdba!stan "vi forever"