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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,37cd0e215c11beb X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news2.google.com!goblin3!goblin2!goblin.stu.neva.ru!aioe.org!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Concatenate enumeration Date: Tue, 26 Oct 2010 02:29:44 +0200 Organization: Ada @ Home Message-ID: References: <0ff42bdb-63a1-4fc2-bb44-e8d89a82bc68@j18g2000yqd.googlegroups.com> NNTP-Posting-Host: o1huFJB2ANcHlWoNFASSiA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: Opera Mail/10.63 (Win32) Xref: g2news1.google.com comp.lang.ada:14767 Date: 2010-10-26T02:29:44+02:00 List-Id: Le Fri, 22 Oct 2010 21:49:26 +0200, okellogg = a =C3=A9crit: > In = > https://groups.google.com/group/comp.lang.ada/browse_thread/thread/33c= e43bfeafb2681/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. > > Oliver I remember I made the same request when I felt it would be nice to be ab= le = to extend an enumeration in multiple client packages, just like the way = = you can extend a tagged record with additional members. Otherwise, I had= = to declare all items of the enumeration, including many ones which was = meaning nothing in the context of the root package, or else had to = simulate enumeration extension in a tedious and not clean way (with = incompatible types, awkward conversion based on 'Pos / 'Val, and the lik= e). -- = Si les chats miaulent et font autant de vocalises bizarres, c=E2=80=99es= t pas pour = les chiens.