Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: enum type Message-ID: <6311@brl-smoke.ARPA> Date: Fri, 21-Aug-87 13:02:52 EDT Article-I.D.: brl-smok.6311 Posted: Fri Aug 21 13:02:52 1987 Date-Received: Sun, 23-Aug-87 01:45:50 EDT References: <2048@umn-cs.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 8 In article <2048@umn-cs.UUCP> smiller@umn-cs.UUCP (Steven M. Miller) writes: >By the way does the ANSI C standard do anything new with enums? like >provide succ(), pred(), lower(), and upper() functions that operate >on enum types? No, X3J11 decided that enums have to act as integral types, so one can use ++ etc. on them. If you want a general set or sequence data type, you'll have to develop a package that implements it.