Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!husc6!spdcc!ima!haddock!karl From: karl@haddock.ima.isc.com (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: TRUE and FALSE (or true and false) Message-ID: <17597@haddock.ima.isc.com> Date: 30 Aug 90 23:40:12 GMT References: <11215@alice.UUCP> <514@demott.COM> <2316@cirrusl.UUCP> <3835@sactoh0.SAC.CA.US> <26280@mimsy.umd.edu> <708.26dd1bf9@iccgcc.decnet.ab.com> Reply-To: karl@kelp.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Cambridge, MA 02138-5302 Lines: 13 In article <708.26dd1bf9@iccgcc.decnet.ab.com> browns@iccgcc.decnet.ab.com (Stan Brown, Oak Road Systems) writes: >Chris, I think adding this to the FAQ's is an excellent idea. I like the way >you said in your post that it's not settled whether int or enum is better for >this. Only suggestion I'd make: you tell how _not_ to write the enum; why not >also tell how to write it: > > typedef enum {false, true} bool; Item #47 in the FAQ already gives four ways to write it, and mentions some of the tradeoff issues in choosing a type. It could probably be amplified a bit, though. Karl W. Z. Heuer (karl@kelp.ima.isc.com or ima!kelp!karl), The Walking Lint