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:a24:394f:: with SMTP id l76mr135572ita.23.1548690853390; Mon, 28 Jan 2019 07:54:13 -0800 (PST) X-Received: by 2002:a9d:148:: with SMTP id 66mr5465otu.5.1548690853300; Mon, 28 Jan 2019 07:54:13 -0800 (PST) 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.166.216.MISMATCH!q69no9658itb.0!news-out.google.com!v141ni26ita.0!nntp.google.com!q69no9657itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 28 Jan 2019 07:54:12 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=146.5.2.29; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC NNTP-Posting-Host: 146.5.2.29 References: <2a6929c5-72fa-4d84-953a-44ea4597ab38@googlegroups.com> <75328dc5-fc59-4228-b77e-77ba6e5101c3@googlegroups.com> <9eedf818-8bfb-465b-afe5-aa3fb0525948@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: class wide iterable (and indexable) From: Shark8 Injection-Date: Mon, 28 Jan 2019 15:54:13 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:55389 Date: 2019-01-28T07:54:12-08:00 List-Id: On Wednesday, January 23, 2019 at 3:47:43 PM UTC-7, Randy Brukardt wrote: > "Shark8" wrote in message > news:9eedf818-8bfb-465b-afe5-aa3fb0525948... > > Wouldn't this be a non-issue if we could Static_Predicate Array-types like > > so? > > > > Type Some_String is Array(Positive range <>) of Character > > with Static-Predicate => Some_String'First = 1; > > The idea of a static predicate is for them to stand-in for proper set > constraints (I would have preferred the latter, but I was alone on that), so > they don't have anything to do with array bounds. What do you mean by "proper set constraints"? [And how would they look?] Things like {x| x in {2**y where y in 0..15} }? (X in 1|2|4|8|16|..|32_768)