Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!samsung!think.com!paperboy!hsdndev!cfa203!dmm From: dmm@cfa.harvard.edu (David Meleedy) Newsgroups: comp.lang.c Subject: Re: When do you use "if ( a = b )"? Message-ID: <1991Mar29.195622.321@worf.harvard.edu> Date: 29 Mar 91 19:56:22 GMT References: <1991Mar19.192416.13756@unlv.edu> <1991Mar28.004147.705@worf.harvard.edu> <15617@smoke.brl.mil> Organization: Harvard-Smithsonian Center for Astrophysics, Cambridge, MA, USA Lines: 15 If someone is having a lot of trouble because (s)he is using an assignment instead of a test for equality, then I still have no problem with person using the: #define EQU == in fact, if it really gets under your skin, you can take the source code, use a good editor to replace every EQU string with ==, and then delete the define statement at the top. In fact you could do that will all but the pseudo-macros like WRITE(x) in the Pascal example that I sent in. So I guess the arguments that it's too hard to translate for an experienced C programmer don't hold any water for me, because an experienced C programmer knows how to use an editor and replace strings that bother him/her. -David Meleedy dmm@worf.harvard.edu