Path: utzoo!utgpu!water!watmath!clyde!att!pacbell!ames!claris!drc From: drc@claris.UUCP (Dennis Cohen) Newsgroups: comp.lang.c Subject: Re: enums Message-ID: <4455@claris.UUCP> Date: 2 Aug 88 14:11:04 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: drc@claris.UUCP (Dennis Cohen) Organization: Claris Corporation, Mountain View CA Lines: 18 In article <5696@haddock.ISC.COM> karl@haddock.ima.isc.com (Karl Heuer) writes: >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 -- It's not true of Pascal. Both J&W and the ANSI/ISO standards explicitly state that SUCC on the last element and PRED on the first element of an enumeration are undefined and should produce an error condition. Dennis Cohen Claris Corp. ------------ Disclaimer: Any opinions expressed above are _MINE_!