🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5246

Re: enums

#5246
From: Maarten Litmaath
Date: Thu, 28 Jul 1988 04:23
14 lines
1084 bytes
In article <5514@haddock.ISC.COM> karl@haddock.isc.com (Karl Heuer) writes:
\In article <1608@dataio.Data-IO.COM> bright@Data-IO.COM (Walter Bright) writes:
\>[ANSI C seems not to allow:]
\>	enum abc { };		/* empty member list	*/
\>	enum def { b, };	/* trailing comma	*/
\
\I can see why one might want to allow the trailing comma, but what good is an
\enum with no values?

Such code could perhaps be generated by a code generator program?
(#ifdef, #define, etc.)
-- 
If you enjoyed the recent heat wave,  |Maarten Litmaath @ Free U Amsterdam:
you'll certainly like the ozone gap...|maart@cs.vu.nl, mcvax!botter!maart
Technical Details
Message-ID: <1331@ark.cs.vu.nl>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!mcvax!hp4nl!botter!ark.cs.vu.nl!maart
References: <1608@dataio.Data-IO.COM> <8807242307.AA27481@explorer.dgp.toronto.edu> <1615@dataio.Data-IO.COM> <5514@haddock.ISC.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!mcvax!hp4nl!botter!ark.cs.vu.nl!maart
From: maart@cs.vu.nl (Maarten Litmaath)
Newsgroups: comp.std.c
Subject: Re: enums
Message-ID: <1331@ark.cs.vu.nl>
Date: 28 Jul 88 04:23:22 GMT
References: <1608@dataio.Data-IO.COM> <8807242307.AA27481@explorer.dgp.toronto.edu> <1615@dataio.Data-IO.COM> <5514@haddock.ISC.COM>
Reply-To: maart@cs.vu.nl (Maarten Litmaath)
Organization: VU Informatica, Amsterdam
Lines: 14