Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site west44.UUCP Path: utzoo!linus!vaxine!wjh12!genrad!decvax!harpo!ulysses!mhuxl!houxm!hogpc!houti!ariel!vax135!ukc!west44!davef From: davef@west44.UUCP Newsgroups: net.lang.c Subject: Re: Use of enumerations (and Lint). Message-ID: <191@west44.UUCP> Date: Wed, 2-May-84 18:58:36 EST Article-I.D.: west44.191 Posted: Wed May 2 18:58:36 1984 Date-Received: Fri, 27-Apr-84 08:22:01 EST References: <155@celerity.UUCP> <457@sequent.UUCP> Organization: CS Dept., Westfield College, London Lines: 13 It is not true to say that enums give you about the same level of support as a series of #define's: using define's your values will be treated as the integer constants they are but if you use enum's you will get all manner of stupid messages when you try to use (quite properly) relational operators on them. In order to make it possible for my students to use lint in conjunction with a package I has written I has to strip out all the enums and replace them with #defines. Such is progress! -- Dave Furber (west44!davef)