Path: 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 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