Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!munnari.oz.au!labtam!timr From: timr@labtam.labtam.oz.au (Tim Roper) Newsgroups: comp.std.c Subject: comma at end of enumerator-list Message-ID: <10756@labtam.labtam.oz.au> Date: 1 Jul 91 01:44:02 GMT Organization: Labtam Australia Pty. Ltd., Melbourne, Australia Lines: 23 I note in ANSI X3.159-1989 that (a) a trailing comma at the end of an enumerator-list is not allowed, as in: enum bletch { foo, bar, }; (b) enum tag namespace is the same as that for struct and union tags I am trying to figure out why I previously thought otherwise. Of course enums were not part of K&R1. I think it may have been the unix v7 C reference manual that my understanding of enums was based on but I do not have access to a copy now. (It also covered struct arguments and returns.) Can anyone remind me? Does anyone know if (a) was considered an issue by X3J11 and whether it is mentioned somewhere in the Rationale? Please note that I am not crusading but simply confused about why I thought (a) was common usage and (b) was not true. -Tim.