Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!uunet!unhd.unh.edu!al From: al@unhd.unh.edu (Anthony Lapadula) Newsgroups: comp.lang.c Subject: Re: When do you use "if ( a = b )"? (was Re: Funny mistake) Message-ID: <1991Mar19.223605.24858@unhd.unh.edu> Date: 19 Mar 91 22:36:05 GMT References: <65837@eerie.acsu.Buffalo.EDU> <1991Mar18.195351.11985@unlv.edu> <357@ptcburp.ptcbu.oz.au> Organization: University of New Hampshire Lines: 15 In article <357@ptcburp.ptcbu.oz.au> michi@ptcburp.ptcbu.oz.au (Michael Henning) writes: >grover@sonny-boy.cs.unlv.edu (Kevin Grover) writes: > >Simply say 1000 times: > > "I shalt never again use = instead of ==". The way I remember this is simple. I've made a mental note that "==" is two characters long, as are "<=" and ">=". When I read code to myself, these latter two come out as "less than or equal" and "greater than or equal"; "==" comes out as "equal equal." Heck, maybe it only works for me. :-) -- Anthony (uunet!unhd!al, al@cs.unh.edu) Lapadula