Min/max and bool

Ron Natalie <ron> ron at brl-sem.ARPA
Sun Jun 1 16:55:40 AEST 1986


> (a) is the biggie.  Why add bool when "typedef enum { FALSE, TRUE } bool;"
> works fine?  (Relying on ANSI C's treatment of enums as real ints).

Because it wouldn't work.  FALSE=0, TRUE= anything else.

-Ron



More information about the Comp.lang.c mailing list