Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site 3comvax.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!oliveb!3comvax!mikes From: mikes@3comvax.UUCP (Mike Shannon) Newsgroups: net.lang.c Subject: Re: Portability question Message-ID: <278@3comvax.UUCP> Date: Mon, 11-Nov-85 16:42:56 EST Article-I.D.: 3comvax.278 Posted: Mon Nov 11 16:42:56 1985 Date-Received: Wed, 13-Nov-85 08:27:41 EST References: <2834@brl-tgr.ARPA> <274@3comvax.UUCP> <790@whuxl.UUCP> Organization: 3Com Corp; Mountain View, CA Lines: 18 Michael Baldwin in the cited article mentions that you can't use an enumerated variable in expressions like enumvar++ or array[enumvar]. I've noticed this too, and I wonder if there is any good reason for restricting this use of enumerated types? Or is it just a limitation of the existing implementations? (which implies: "There are lots of compilers out there which do not support this feature, therefore it can never become part of the language.") If there is a good reason for disallowing this use of enumerated variables, I'd like to hear it. Finally, if there is no good reason, can we expect this limitation to be removed in the future? -- Michael Shannon {ihnp4,hplabs}!oliveb!3comvax!mikes