Newsgroups: comp.lang.c
Path: utzoo!henry
From: henry@zoo.toronto.edu (Henry Spencer)
Subject: Re: question about an array of enum
Message-ID: <1990Nov13.041806.10991@zoo.toronto.edu>
Organization: U of Toronto Zoology
References: <9130019@hpavla.AVO.HP.COM> <1990Nov7.003126.23445@zoo.toronto.edu> <1990Nov8.000847.16340@athena.mit.edu> <14401@smoke.brl.mil>
Date: Tue, 13 Nov 90 04:18:06 GMT

In article <14401@smoke.brl.mil> gwyn@smoke.brl.mil (Doug Gwyn) writes:
>>Does the standard really allow a different choice to be made for different
>>enumerations?
>
>Yes.  In fact it might be nice to allot only as large an integer type as is
>needed to hold all valid values (enumeration constant values for the type).

Out of curiosity, Doug, can you find anywhere where the standard promises
that the integer type *is* large enough to hold all those values?  I can't.
That's "obviously" the intent, but it doesn't seem to have made it into
the final document!
-- 
"I don't *want* to be normal!"         | Henry Spencer at U of Toronto Zoology
"Not to worry."                        |  henry@zoo.toronto.edu   utzoo!henry
