Article View: comp.std.c
Article #3108Re: Non-Portable pointer assignment?
From: Henry Spencer
Date: Fri, 07 Jun 1991 16:17
Date: Fri, 07 Jun 1991 16:17
14 lines
1330 bytes
1330 bytes
In article <1991Jun7.013605.728@tkou02.enet.dec.com> diamond@jit533.enet@tkou02.enet.dec.com (Norman Diamond) writes: >If you really want to be horrified, I cannot find any requirement that >an enumeration type actually be able to hold all of the values of its >members... It's worse than that. Recently it was pointed out that a named enumeration type is in scope as soon as its name is seen, and since there is no provision for incomplete enumerated types, that means that `sizeof(enumtype)' is legal before the members have been seen... so the size of the type cannot depend on the values of the members!! (In X3J11's defence, this probably was not deliberate.) -- "We're thinking about upgrading from | Henry Spencer @ U of Toronto Zoology SunOS 4.1.1 to SunOS 3.5." | henry@zoo.toronto.edu utzoo!henry
Technical Details
Message-ID:
<1991Jun7.161752.9625@zoo.toronto.edu>Path:
arc1-ca.pugleaf.net!utzoo!henryReferences:
<mccX31w164w@cybrspc> <JXey32w164w@dat1hb.north.de> <1991Jun5.085138.21366@prl.dec.com> <1991Jun5.150527.22942@klaava.Helsinki.FI> <MCDANIEL.91Jun6111329@dolphin.adi.com> <1991Jun7.013605.728@tkou02.enet.dec.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c Path: arc1-ca.pugleaf.net!utzoo!henry From: henry@zoo.toronto.edu (Henry Spencer) Subject: Re: Non-Portable pointer assignment? Message-ID: <1991Jun7.161752.9625@zoo.toronto.edu> Date: Fri, 7 Jun 1991 16:17:52 GMT References: <mccX31w164w@cybrspc> <JXey32w164w@dat1hb.north.de> <1991Jun5.085138.21366@prl.dec.com> <1991Jun5.150527.22942@klaava.Helsinki.FI> <MCDANIEL.91Jun6111329@dolphin.adi.com> <1991Jun7.013605.728@tkou02.enet.dec.com> Organization: U of Toronto Zoology