Path: utzoo!attcan!uunet!mcmi!hdr!zycor!bill From: bill@zycor.UUCP (bill) Newsgroups: comp.lang.c Subject: Re: enums Message-ID: <115@zycor.UUCP> Date: 5 Aug 88 14:42:22 GMT References: <1608@dataio.Data-IO.COM> <469@m3.mfci.UUCP> <1988Jul22.171612.6225@utzoo.uucp> <5447@ihlpf.ATT.COM> <11686@steinmetz.ge.com> <2404@boulder.Colorado.EDU> <5696@haddock.ISC.COM> Reply-To: bill@zycor.UUCP (bill) Organization: zycor, Inc. - Omaha, NE Lines: 13 }In <2404@boulder.Colorado.EDU> swarbric@tramp (Frank Swarbrick) writes: }>In <11686@steinmetz.ge.com> davidsen@crdos1.UUCP (bill davidsen) writes: }>>[enums should be in sequence, so ++ and -- can be used meaningfully] }> }>Personally, I would like it to be even a little more like Pascal. [++ on the }>last item should wrap to the first.] This is like Pascal's succ() and pred() } }I rather doubt that this is true of Pascal -- I've never heard of it before -- In pascal, doing a succ() on the last item in an enum is a runtime error. In pascal, doing a pred() on the first item ... If your's wraps, it's broken. (Or maybe it's from Borland :-) )