Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site ulysses.UUCP Path: utzoo!watmath!clyde!burl!ulysses!jss From: jss@ulysses.UUCP (Jerry Schwarz) Newsgroups: net.lang.c Subject: Re: enums, pcc & all that Message-ID: <1300@ulysses.UUCP> Date: Tue, 17-Jun-86 11:39:17 EDT Article-I.D.: ulysses.1300 Posted: Tue Jun 17 11:39:17 1986 Date-Received: Wed, 18-Jun-86 05:33:29 EDT References: <212@pyuxv.UUCP> Organization: AT&T Bell Laboratories, Murray Hill Lines: 21 > > Unfortunatly those that be decided to do a STUPID, DUMB and > and CRETINOUS implementation of enums as integers (from those that > bring you unary+ ...) > Please, can't these discussions be carried out in a civil tone. Jerry Schwarz Bell Labs, MH P.S. The earliest compilers with enums at Bell Labs (around six or seven years ago) did treat each enum tag as a separate type. This seemed the natural and correct thing to do. People who began to use them complained about having to cast them to ints in many legitimate cases such as subsripts and comparisons. I personally remember being enthusiastic about them but giving them up and returning to #defines because of this. Enums are not a new feature in C (around here) and there is a large body of experience that favors the "enum as integral" definition.