From 5640641432516071963
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,7538bd92d6a9557a
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 1995-01-21 19:58:53 PST
Path: nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!gw1.att.com!fnnews.fnal.gov!uwm.edu!spool.mu.edu!olivea!koriel!male.EBay.Sun.COM!engnews2.Eng.Sun.COM!clamage
From: clamage@Eng.Sun.COM (Steve Clamage)
Newsgroups: comp.std.c++
Subject: Re: short enum, bool
Date: 22 Jan 1995 03:58:53 GMT
Organization: Sun Microsystems Inc., Mountain View, CA
Lines: 15
Message-ID: <3fsl5t$quo@engnews2.Eng.Sun.COM>
References: <scottyD2DFML.MDt@netcom.com> <D2JJ3z.Cvw@ukpsshp1.serigate.philips.nl> 	<790640242snz@thone.demon.co.uk> <DAG.95Jan21170030@bellman.control.lth.se>
NNTP-Posting-Host: taumet.eng.sun.com
X-Newsreader: NN version 6.5.0 #21 (NOV)

dag@control.lth.se (Dag Bruck) writes:


>A> enum big { b_lo = 0, b_hi = 256 }; // Needs at least 9 bits

>so sizeof(big) >= 2.

Well, no, because a char might be 9 (or more) bits -- and it is on
some systems (especially those with 36-bit words).

I don't think any basic type is required to have size > 1.
That is, I believe sizeof(long double)==1 is allowed. (Imagine
a system where the smallest addressable unit has more than 64 bits.)
--
Steve Clamage, stephen.clamage@eng.sun.com


