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=0.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,81bb2ce65a3240c3 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.234.38 with SMTP id ub6mr4363395pbc.2.1336337251834; Sun, 06 May 2012 13:47:31 -0700 (PDT) Path: pr3ni11872pbb.0!nntp.google.com!news2.google.com!news4.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: What would you like in Ada202X? Date: Sun, 06 May 2012 23:47:30 +0300 Organization: Tidorum Ltd Message-ID: References: <3637793.35.1335340026327.JavaMail.geo-discussion-forums@ynfi5> Mime-Version: 1.0 X-Trace: individual.net C0BPGuc/IPOaXDpXETcaXApD5jYNY4Zy4xwn+R/N3kD8qO9d07w8FR688i+S4by+a/ Cancel-Lock: sha1:leOeU7QoumSemSNZ/EOvumBAjGQ= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2012-05-06T23:47:30+03:00 List-Id: On 12-05-06 22:27 , Simon Wright wrote: > Niklas Holsti writes: >> >> [ A new suggestion for extending enumerated types ] > > This seems as if it could be very useful. That's encouraging. >> As an option, some standard word or symbol could be standardized to >> serve the role of our "More" literal, above. > > "others", perhaps? That was my first thought, but it becomes ambiguous, for example: type Enum is (A, B, C, others); E : Enum; case E is when A => ... when others => ... -- Does this mean (only) the special literal "others", -- or has it the classical meaning "all other literals not -- already mentioned"? end case; In contrast, "when new" has no present meaning, so this is unambiguous: type Enum is (A, B, C, new); E : Enum; case E is when A => ... when new => ... when others => ... -- Meaning "when B | C =>". end case; -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .