Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!necntc!ames!ucbcad!ucbvax!ulysses!hector!ekrell From: ekrell@hector.UUCP (Eduardo Krell) Newsgroups: comp.unix.questions Subject: Re: Brain-dead Unix tutor needs quick help (-1) Message-ID: <3184@ulysses.homer.nj.att.com> Date: Wed, 18-Nov-87 16:45:49 EST Article-I.D.: ulysses.3184 Posted: Wed Nov 18 16:45:49 1987 Date-Received: Sat, 21-Nov-87 11:05:53 EST References: <387@cogen.UUCP> Sender: daemon@ulysses.homer.nj.att.com Reply-To: ekrell@hector (Eduardo Krell) Organization: AT&T Bell Labs, Murray Hill Lines: 14 Keywords: I used to know the reason In article <387@cogen.UUCP> alen@cogen.UUCP (Alen Shapiro) writes: >#define XXX (-1) > >Please someone out in net-land, put me out of my mysery. Is there a potential >confusion of unary minus with something else here? what about an expression like "a-XXX" in your program? It will be converted to "a--1" which doesn't look like legal C to me. On the other hand, "a-(-1)" is OK. Eduardo Krell AT&T Bell Laboratories, Murray Hill {ihnp4,seismo,ucbvax}!ulysses!ekrell