Time to standardize "true" and "false"

Richard H. Gumpertz rhg at cpsolv.UUCP
Wed Sep 27 12:27:40 AEST 1989


The biggest advantage of a built-in boolean type would be that casts TO it
would test for zero/non-zero rather than just trucating the high-order bits
if sizeof(source) is bigger than sizeof(bool).  Also, (bool)X & (bool)Y would
do "right" thing even if X was 4 and Y was 32.  In other words, & would be
equivalent to && for type bool except that both operands would be evaluated.
-- 
==========================================================================
| Richard H. Gumpertz:                        ...uunet!amgraf!cpsolv!rhg |
| Computer Problem Solving, 8905 Mohwak Lane, Leawood, Kansas 66206-1749 |
==========================================================================



More information about the Comp.lang.c mailing list