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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!gandalf.srv.welterde.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Ada case-statement Date: Thu, 15 Mar 2018 16:50:55 -0500 Organization: JSA Research & Innovation Message-ID: References: <365d65ea-5f4b-4b6a-be9b-1bba146394ab@googlegroups.com> Injection-Date: Thu, 15 Mar 2018 21:50:56 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="22609"; mail-complaints-to="news@jacob-sparre.dk" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: reader02.eternal-september.org comp.lang.ada:51010 Date: 2018-03-15T16:50:55-05:00 List-Id: "Robert I. Eachus" wrote in message news:p8cgeh$1v7d$1@gioia.aioe.org... ... > It would be nice to allow compilers to allow the when others to be omitted > based on what it knows about the value of The_Day but all that is > syntactic sugar. Actually, we considered that in variants, but it turns out that it would cause an incompatibility. I forget the details, but it has something to do with the completeness checks (which we would not want to lose). We tried a number of options, but they were worse than the original problem. So we decided not to do it. In any case, it's a lot more than "syntactic sugar", it would substantially change the semantics. Randy.