Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!zaphod.mps.ohio-state.edu!rpi!crdgw1!underdog!volpe From: volpe@underdog.crd.ge.com (Christopher R Volpe) Newsgroups: comp.lang.c Subject: Re: TRUE and FALSE Message-ID: <11369@crdgw1.crd.ge.com> Date: 28 Aug 90 12:11:39 GMT References: <11215@alice.UUCP> <514@demott.COM> <2316@cirrusl.UUCP> Sender: news@crdgw1.crd.ge.com Reply-To: volpe@underdog.crd.ge.com (Christopher R Volpe) Lines: 30 In article <2316@cirrusl.UUCP>, dhesi%cirrusl@oliveb.ATC.olivetti.com (Rahul Dhesi) writes: |> |>When I find somebody who really, really, really wants to define TRUE |>and FALSE, even somebody who uses them for assignment only, I recommend |>the following defines instead: |> |> #define ZERO 0 |> #define ONE 1 |> Ugh. Those say nothing. They don't hint to the boolean nature of the variables being assigned to. They're as useless as the comments in the following code: main() { int i; /* declare variable i */ i=0; /* assign zero to i */ while (!EOF) { /* while not end of file */ i=i+1; /* increment i by one */ if (i>100) /* if i is greater than 100 */ i=0; /* then reset i to zero */ } } ================== Chris Volpe G.E. Corporate R&D volpecr@crd.ge.com