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=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:ae9:e895:: with SMTP id a143mr18784086qkg.359.1591539098973; Sun, 07 Jun 2020 07:11:38 -0700 (PDT) X-Received: by 2002:aca:e057:: with SMTP id x84mr7242291oig.119.1591539098778; Sun, 07 Jun 2020 07:11:38 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 7 Jun 2020 07:11:38 -0700 (PDT) In-Reply-To: <4b4c3687-fb26-4c75-9536-579e55df3d42o@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=2a02:1206:4544:3750:6166:5721:3f9a:5e9d; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG NNTP-Posting-Host: 2a02:1206:4544:3750:6166:5721:3f9a:5e9d References: <2d4d6645-7055-4564-a854-6da5fc83af4eo@googlegroups.com> <9c45012c-a4b5-416d-bf1e-c2a8479ec641o@googlegroups.com> <4b4c3687-fb26-4c75-9536-579e55df3d42o@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <0f9064c2-6572-4ec8-937a-4597694dc011o@googlegroups.com> Subject: Re: Q: discrete_subtype_definition: static only cases? From: gautier_niouzes@hotmail.com Injection-Date: Sun, 07 Jun 2020 14:11:38 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:59006 Date: 2020-06-07T07:11:38-07:00 List-Id: > Nonono, types in Ada are always anonymous. What you name in a *type declaration* is the *first subtype*. OK, found the reference (3.2.1 (6)). Thanks. So, what is declared following the keyword "type" is actually a "first subtype", right ? Then, to summarize, whether you use the keyword "type" or "subtype", it is actually a subtype and can be dynamic (not too wysiwig, but there are surely some good reasons behind that concept). Back to the question, the purely static cases of discrete_subtype_definition seem to be quite restricted (Niklas listed 2 cases - thanks!).