Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!yale!cmcl2!stealth.acf.nyu.edu!brnstnd From: brnstnd@stealth.acf.nyu.edu Newsgroups: comp.lang.c Subject: Re: Three states Message-ID: <5880:Apr720:15:1490@stealth.acf.nyu.edu> Date: 7 Apr 90 20:15:14 GMT References: <18722.2618C528@urchin.fidonet.org> <1990Apr4.154552.14767@aqdata.uucp> <16388@haddock.ima.isc.com> Reply-To: brnstnd@stealth.acf.nyu.edu (Dan Bernstein) Distribution: usa Organization: IR Lines: 12 X-Original-Subject: BOOLEAN as enum In article <16388@haddock.ima.isc.com> karl@haddock.ima.isc.com (Karl Heuer) writes: > I can imagine a situation, e.g. a variant of ctype where is_lower(c) returns > TRUE or FALSE normally, or ERROR if c is out of range. But I would think > that this would be rare usage, and not worthy of being part of the type. Bad example: somehow I never find that I already know isascii(c) before calling isdigit(c), so for ``portability'' I always have to use both. So it wouldn't be rare usage. On the other hand, I also see absolutely no use for a three-valued isdigit above a simple isascii && isdigit; I suspect most other programmers agree. ---Dan