🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3057

Re: How soon can `sizeof (tagged_type)' be used?

#3057
From: Erik Naggum
Date: Sun, 19 May 1991 22:49
16 lines
1104 bytes
Ron Guilmette writes:
|
|   Are either or both of these examples legal?
|
|   enum E { red, green = sizeof (enum E), blue };

I think I may be missing something vital in your question.

What is "sizeof (enum E)" supposed to return if not the same as
"sizeof (int)"?

</Erik>
--
Erik Naggum             Professional Programmer            +47-2-836-863
Naggum Software             Electronic Text            <enag@ifi.uio.no>
0118 OSLO, NORWAY       Computer Communications      <erik@naggum.uu.no>
Technical Details
Message-ID: <ENAG.91May20004919@maud.ifi.uio.no>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!bloom-beacon!eru!hagbard!sunic!ugle.unit.no!nuug!ifi!enag
References: <5506@lupine.NCD.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!bloom-beacon!eru!hagbard!sunic!ugle.unit.no!nuug!ifi!enag
From: enag@ifi.uio.no (Erik Naggum)
Newsgroups: comp.std.c
Subject: Re: How soon can `sizeof (tagged_type)' be used?
Message-ID: <ENAG.91May20004919@maud.ifi.uio.no>
Date: 19 May 91 22:49:28 GMT
References: <5506@lupine.NCD.COM>
Sender: enag@ifi.uio.no (Erik Naggum)
Organization: Naggum Software, Oslo, Norway
Lines: 16
In-Reply-To: rfg@lupine.ncd.com's message of 12 May 91 07: 04:00 GMT