Funny mistake
    Stan Brown 
    stan at Dixie.Com
       
    Fri Mar 15 11:17:36 AEST 1991
    
    
  
>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"
    
    
More information about the Comp.lang.c
mailing list