One more point regarding = and == (more flamage)

Jody Hagins hagins at gamecock.rtp.dg.com
Thu Mar 28 06:22:52 AEST 1991





The discussion does not focus on whether or not you should always
test against 0, but that you SHOULD always include an explicit
test if using assignments.  This removes all ambiguity in the conditional
test.  That way, you ALWAYS know that the programmer didn't put '=' when
(s)he meant '=='


-- 

Jody Hagins             
hagins at gamecock.rtp.dg.com    
Data General Corp.      
62 Alexander Dr.        
RTP, N.C.  27709        
(919) 248-6035          

Nothing I ever say reflects the opinions of DGC.



More information about the Comp.lang.c mailing list