Path: utzoo!attcan!uunet!garfield!john13 From: john13@garfield.MUN.EDU (John Russell) Newsgroups: comp.lang.c Subject: Re: Whitespace is your friend Summary: parentheses can be your best buddy Message-ID: <5050@garfield.MUN.EDU> Date: 23 Dec 88 18:28:29 GMT References: <9076@smoke.brl.mil> <14020049@hpisod2.hp.com> <212@unix386.convergent.com> <2151@uokmax.uucp> <2155@uokmax.uucp> <785@auspex.UUCP> Reply-To: john13@garfield.UUCP (John Russell) Organization: Memorial University of Newfoundland Lines: 21 In article <785@auspex.UUCP> guy@auspex.UUCP (Guy Harris) writes: > > card=NOVALUE; > >#define NOVALUE -1 > >Nevertheless, White Space is Still Your Friend, since if you put the >white space in compilers that still honor the old syntax will do the >right thing as well. Negative define values are also a good place to use parentheses. There is more than one way for the compiler to choke on an unparenthesized number. eg. #define NOVALUE (-1) card2 = card1-NOVALUE Either whitespace are brackets will allow it to parse correctly in this case. John -- "If you steal all money, kids not be able to BUY TOYS!" -- Saturday morning cartoon character explaining why theft is bad