Funny mistake
karln at uunet.uu.net
karln at uunet.uu.net
Tue Mar 19 04:03:18 AEST 1991
In article <2372 at kielo.uta.fi> av at kielo.uta.fi (Arto V. Viitanen) writes:
>In article <13337 at helios.TAMU.EDU> antek at 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 at uunet.uu.net
More information about the Comp.lang.c
mailing list