Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site hou3c.UUCP
Path: utzoo!watmath!clyde!burl!hou3c!ka
From: ka@hou3c.UUCP (Kenneth Almquist)
Newsgroups: net.lang.c
Subject: Re: enum, bit fields, cpp...
Message-ID: <332@hou3c.UUCP>
Date: Mon, 27-Feb-84 10:21:58 EST
Article-I.D.: hou3c.332
Posted: Mon Feb 27 10:21:58 1984
Date-Received: Tue, 28-Feb-84 00:40:04 EST
References: <4800037@ucbesvax.UUCP>
Organization: Bell Labs, Holmdel, NJ
Lines: 13

The ANSI committee will have to do something about bit fields.  Currently,
the way to store a boolean in a single bit of storage is to say

	struct { int flag: 1; } var;

and only test var.flag against zero.  I don't think that you should expect

	typedef enum {False, True} bool;
	struct { bool flag : 1; } var;

to even compile, because compilers are currently required to only support
int bit fields.
					Kenneth Almquist