🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2874

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

#2874
From: Ron Guilmette
Date: Sun, 12 May 1991 07:04
8 lines
646 bytes
I may have asked this question once already (long ago).  If so I apologize.
I forgot the answer.

Are either or both of these examples legal?

enum E { red, green = sizeof (enum E), blue };

struct S { int i; int j : sizeof (struct S); int k; };
Technical Details
Message-ID: <5506@lupine.NCD.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!decwrl!infopiz!lupine!lupine.ncd.com

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!infopiz!lupine!lupine.ncd.com
From: rfg@lupine.ncd.com (Ron Guilmette)
Newsgroups: comp.std.c
Subject: How soon can `sizeof (tagged_type)' be used?
Message-ID: <5506@lupine.NCD.COM>
Date: 12 May 91 07:04:00 GMT
Sender: rfg@NCD.COM
Organization: Network Computing Devices, Inc., Mt. View, CA
Lines: 8