Article View: comp.std.c
Article #3058Re: How soon can `sizeof (tagged_type)' be used?
From: Norman Diamond
Date: Mon, 20 May 1991 03:46
Date: Mon, 20 May 1991 03:46
14 lines
1268 bytes
1268 bytes
In article <ENAG.91May20004919@maud.ifi.uio.no> enag@ifi.uio.no (Erik Naggum) writes:
>Ron Guilmette writes:
>> enum E { red, green = sizeof (enum E), blue };
>
>What is "sizeof (enum E)" supposed to return if not the same as
>"sizeof (int)"?
sizeof (short), sizeof (long), or sizeof (other_integral_type_which_the_\
implementation_is_allowed_to_define_even_though_portable_programs_cannot_\
directly_name_this_type)
--
Norman Diamond diamond@tkov50.enet.dec.com
If this were the company's opinion, I wouldn't be allowed to post it.
Permission is granted to feel this signature, but not to look at it.
Technical Details
Message-ID:
<1991May20.034617.19896@tkou02.enet.dec.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!decwrl!pa.dec.com!jrdzzz.jrd.dec.com!tkou02.enet.dec.com!jit533!diamondReferences:
<5506@lupine.NCD.COM> <ENAG.91May20004919@maud.ifi.uio.no>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!decwrl!pa.dec.com!jrdzzz.jrd.dec.com!tkou02.enet.dec.com!jit533!diamond From: diamond@jit533.swstokyo.dec.com (Norman Diamond) Newsgroups: comp.std.c Subject: Re: How soon can `sizeof (tagged_type)' be used? Message-ID: <1991May20.034617.19896@tkou02.enet.dec.com> Date: 20 May 91 03:46:17 GMT References: <5506@lupine.NCD.COM> <ENAG.91May20004919@maud.ifi.uio.no> Sender: usenet@tkou02.enet.dec.com (USENET News System) Reply-To: diamond@jit533.enet@tkou02.enet.dec.com (Norman Diamond) Organization: Digital Equipment Corporation Japan , Tokyo Lines: 14