Path: utzoo!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!uunet!karln!karln!karln From: karln@uunet.uu.net Newsgroups: comp.lang.c Subject: Re: Funny mistake Message-ID: <1991Mar18.180318.1603@uunet.uu.net> Date: 18 Mar 91 18:03:18 GMT Article-I.D.: uunet.1991Mar18.180318.1603 References: <1991Mar13.125034.2825@st-andy.uucp> <13337@helios.TAMU.EDU> <2372@kielo.uta.fi> Reply-To: karln@karln.UUCP () Distribution: comp Organization: Sam76 - Pennington NJ Lines: 17 In article <2372@kielo.uta.fi> av@kielo.uta.fi (Arto V. Viitanen) writes: >In article <13337@helios.TAMU.EDU> antek@binoc.tamu.edu (Antek Laczkowski) writes: >> >>"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, > >It seems, that almost all PC C compilers (at least Turbo C, C++) reports this >kind of stuff. > Is not this supposed to be a job for lint? Both ARE valid syntax ... Karl Nicholas karln!karln@uunet.uu.net