TRUE and FALSE (or true and false)
Karl Heuer
karl at haddock.ima.isc.com
Fri Aug 31 09:40:12 AEST 1990
In article <708.26dd1bf9 at iccgcc.decnet.ab.com> browns at 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 at kelp.ima.isc.com or ima!kelp!karl), The Walking Lint
More information about the Comp.lang.c
mailing list