Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!rutgers!devon!sojurn!mike From: mike@sojurn.UUCP (Mike Sangrey) Newsgroups: comp.lang.c Subject: Re: When do you use "if ( a = b )"? (was Re: Funny mistake) Message-ID: <233@sojurn.UUCP> Date: 24 Mar 91 22:03:55 GMT References: <8148@rsiatl.Dixie.Com> <15481@smoke.brl.mil> <775@camco.Celestial.COM> <65837@eerie.acsu.Buffalo.EDU> <1991Mar18.195351.11985@unlv.edu> Reply-To: mike@sojurn.UUCP (Mike Sangrey) Organization: The Humble Sojournage Palace; Paradise, Pa Lines: 15 >) In article <775@camco.Celestial.COM> bill@camco.Celestial.COM (Bill Campbell) writes: >) [concerning "if ( a = b )" >) >) [Deleted ...] >) >) It's been my mistake everytime I've done it!! As an aside: you should get into the habit of putting the constant and function calls on the left of '=='. That way when you mess up with a '=' the compiler will 'Bzzzzzt'. The major problem with this idea is it looks funny. Of course, if we all did it this way ... ;-) mike ---------- "It muddles me rather." Pooh with apologies to A. A. Milne