enums

Maarten Litmaath maart at cs.vu.nl
Thu Jul 28 14:23:22 AEST 1988


In article <5514 at haddock.ISC.COM> karl at haddock.isc.com (Karl Heuer) writes:
\In article <1608 at dataio.Data-IO.COM> bright at 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 at cs.vu.nl, mcvax!botter!maart



More information about the Comp.std.c mailing list