Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!princeton!caip!sri-spam!nike!ucbcad!faustus From: faustus@ucbcad.BERKELEY.EDU (Wayne A. Christopher) Newsgroups: net.lang.c Subject: Re: Boolean datatypes Message-ID: <660@ucbcad.BERKELEY.EDU> Date: Mon, 16-Jun-86 18:06:54 EDT Article-I.D.: ucbcad.660 Posted: Mon Jun 16 18:06:54 1986 Date-Received: Wed, 18-Jun-86 03:26:54 EDT References: <210@pyuxv.UUCP> Organization: CAD Group, U.C. Berkeley Lines: 16 > typedef enum { false=0,true } bool; > > Many current C compilers now implement enums properly (i.e. each enumeration > is a distinct type) yet they are hardly ever used. Any comments why not ? The problems come when you write: bool b; int a, c; b = (a == c); My compiler gives an "enumeration type clash". It would seem that you can't legally convert integers to enum members... Wayne