enums

Walter Bright bright at Data-IO.COM
Tue Jul 19 04:37:12 AEST 1988


>From reading the grammar for enums in the Ansi spec, it seems that the
following is not allowed:

	enum abc { };		/* empty member list	*/
	enum def { b, };	/* trailing comma	*/

Many compilers accept this, and I've run across code that uses it. Any
thoughts? Is this an oversight in the spec?



More information about the Comp.std.c mailing list