Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!ncar!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!news.funet.fi!uta!av From: av@uta.fi (Arto V. Viitanen) Newsgroups: comp.lang.c Subject: Re: Funny mistake Message-ID: <2372@kielo.uta.fi> Date: 14 Mar 91 15:49:44 GMT References: <1991Mar13.125034.2825@st-andy.uucp> <13337@helios.TAMU.EDU> Reply-To: av@kielo.uta.fi (Arto V. Viitanen) Distribution: comp Organization: University of Tampere, Finland Lines: 16 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. -- Arto V. Viitanen email: av@kielo.uta.fi University Of Tampere, av@ohdake.cs.uta.fi Finland