From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5b0235b23a9db0f2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-01-20 08:23:36 PST Path: supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.cis.ohio-state.edu!not-for-mail From: carroll@cis.ohio-state.edu (Mark Carroll) Newsgroups: comp.lang.ada Subject: Re: Extensible Enummerated types FW: When will next Ada revision be? (83, 95, ?) Date: 20 Jan 2001 16:23:35 GMT Organization: Ohio State Univ., Dept of Computer and Information Science Message-ID: <94ce27$rrb$1@news.cis.ohio-state.edu> References: <94c61v$h4a$1@nnrp1.deja.com> NNTP-Posting-Host: beta.cis.ohio-state.edu X-Newsreader: trn 4.0-test72 (19 April 1999) Xref: supernews.google.com comp.lang.ada:4238 Date: 2001-01-20T16:23:35+00:00 List-Id: In article , Jeff Creem wrote: (snip) >Whether the extra complexity this imposes on compiler writes (or language >learners) is worth the occasional >convenience is certainly debatable. FWIW, I certainly make use of it in other languages. In particular, you need to be able to iterate through the elements of a type, but if there are two enumerated types with the same number of elements, if elements don't implicitly cast from one type to the other, then you're more likely to catch bugs which involve someone using the wrong type or getting parameters the wrong way around, etc.. Still, there are ways of simulating it too; maybe I use such types atypically often. -- Mark