Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!linus!wivax!decvax!microsof!fluke!kurt
From: kurt@fluke.UUCP
Newsgroups: net.lang.c
Subject: Re: C typedef deficiency
Message-ID: <583@vax2.UUCP>
Date: Sun, 26-Jun-83 15:40:49 EDT
Article-I.D.: vax2.583
Posted: Sun Jun 26 15:40:49 1983
Date-Received: Mon, 27-Jun-83 12:03:20 EDT
References: <309@hou5f.UUCP> <575@hou5e.UUCP>
Lines: 19

The thing about the members of an enumerated type is that they are LITERAL
CONSTANTS.  Wanting to use a particular identifier to denote a member of
more than one enumeration should be viewed in the same way as wanting to use
a particular numeric literal (like 1 or 16) to denote more than one value.
Just because identifiers used as members of an enumeration are spelled
differently than literal numeric constants does not mean they are
semantically any different.

For extended discussion of this topic try:

"Enumerations in Pascal, Ada, and Beyond",Moffat,
SIGPLAN Notices(16)2 pp 77-82, Feb 1981

"Another Look at Enumerated Types",Harland & Gunn,
SIGPLAN Notices(17)7 pp 62-71, July 1981

Kurt Guntheroth
Digital Service Products Software
John Fluke Mfg. Co., Inc.