Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!linus!decvax!microsof!uw-beaver!cornell!vax135!ukc!root44!jmc
From: jmc@root44.UUCP
Newsgroups: net.lang.c
Subject: Re: enums
Message-ID: <4084@root44.UUCP>
Date: Thu, 7-Jul-83 01:29:38 EDT
Article-I.D.: root44.4084
Posted: Thu Jul  7 01:29:38 1983
Date-Received: Fri, 8-Jul-83 15:01:52 EDT
References: rlgvax.754
Lines: 13

I think enums are a nice concept, as I always believe in making the computer
do the work for me, and thinking of numbers is something it can do better.

Where they do break down in C (in my view) is that there is no syntax for
initialising an array with enum indices.  Thus you cannot simply replace 
error.h numbers for example, and still have sys_errlist[] defined in the
same way.  Most of my attempts to use enums have foundered on this particular
rock and I have ended up with defines, not wanting to write lots of code
for what the C compiler ought to be doing.

		John Collins
		Root Computers Ltd
			...!vax135!ukc!root44!jmc