Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!lavaca.uh.edu!uhnix1!sugar!ficc!peter From: peter@ficc.ferranti.com (Peter da Silva) Newsgroups: comp.lang.c Subject: Re: TRUE and FALSE Message-ID: <2GO5PI3@xds13.ferranti.com> Date: 4 Sep 90 20:23:37 GMT References: <11215@alice.UUCP> <514@demott.COM> <2316@cirrusl.UUCP> <1990Aug29.153917.28110@warwick.ac.uk> <2341@cirrusl.UUCP> Reply-To: peter@ficc.ferranti.com (Peter da Silva) Organization: Xenix Support, FICC Lines: 15 In article <2341@cirrusl.UUCP> dhesi%cirrusl@oliveb.ATC.olivetti.com (Rahul Dhesi) writes: > i = isdigit(c); > ... > if (i == TRUE) ... I would never do !if (anything == TRUE)! or !if (anything == FALSE)!. Not only is it redundant, but it obscures the meaning of the code. If you have a boolean-valued variable, it's clearer to say !if (anything)! or, for that matter, !if (!anything)!. The only think I use TRUE and FALSE for is: boolean = TRUE; return TRUE; function(..., TRUE, ...); -- Peter da Silva. `-_-' +1 713 274 5180. 'U` peter@ferranti.com