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:ad4:46a9:: with SMTP id br9mr4853560qvb.246.1591532038798; Sun, 07 Jun 2020 05:13:58 -0700 (PDT) X-Received: by 2002:a4a:a785:: with SMTP id l5mr14232366oom.74.1591532038558; Sun, 07 Jun 2020 05:13:58 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!feeder1.feed.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!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 05:13:58 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=2a02:1206:4544:3750:1837:333d:282:5c12; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG NNTP-Posting-Host: 2a02:1206:4544:3750:1837:333d:282:5c12 References: <2d4d6645-7055-4564-a854-6da5fc83af4eo@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <9c45012c-a4b5-416d-bf1e-c2a8479ec641o@googlegroups.com> Subject: Re: Q: discrete_subtype_definition: static only cases? From: gautier_niouzes@hotmail.com Injection-Date: Sun, 07 Jun 2020 12:13:58 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:59001 Date: 2020-06-07T05:13:58-07:00 List-Id: > No. The basic principle is that types are static (they determine the > underlying representation) and subtypes are dynamic. Well, there are obviously exceptions to that basic principle: procedure SD2 is begin for I in 1 .. 3 loop declare type T is array (1 .. I) of Integer; -- I is a variable B: T; begin null; end; end loop; end; :-)