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-Thread: 103376,37cd0e215c11beb X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news2.google.com!news.glorb.com!news.ecp.fr!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Concatenate enumeration Date: Fri, 12 Nov 2010 11:55:34 -0600 Organization: Jacob Sparre Andersen Message-ID: References: <0ff42bdb-63a1-4fc2-bb44-e8d89a82bc68@j18g2000yqd.googlegroups.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1289584535 11982 69.95.181.76 (12 Nov 2010 17:55:35 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Fri, 12 Nov 2010 17:55:35 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 Xref: g2news1.google.com comp.lang.ada:15451 Date: 2010-11-12T11:55:34-06:00 List-Id: "okellogg" wrote in message news:0ff42bdb-63a1-4fc2-bb44-e8d89a82bc68@j18g2000yqd.googlegroups.com... > In > https://groups.google.com/group/comp.lang.ada/browse_thread/thread/33ce43bfeafb2681/237f979efee731d3, > Randy Brukardt wrote: > >> "Robert A Duff" wrote in message >> news:wcctywksu8t.fsf@shell01.TheWorld.com... >> ... >> >> >> You can't. Enumeration types are not extensible. >> >> > Extensible enumeration types were proposed for Ada 9X, >> > but were dropped. >> >> And were proposed again for Ada 2005, and were dropped again. See >> AI95-0261-1. I doubt it will ever be proposed again. > > I wonder why this has not been picked up - especially when looking at > all the new features that are making it into Ada2012. The semantic difficulties are staggering. It just doesn't make sense in the Ada model of types (mostly because of the Ada requirement that enumerations be elementary types). Some solution to the problems probably could be found, but the obvious ones make the extensions near useless. Go read AI95-0261-1 if you care about the details. Randy.