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 10.66.66.35 with SMTP id c3mr835139pat.12.1391713079946; Thu, 06 Feb 2014 10:57:59 -0800 (PST) X-Received: by 10.182.117.138 with SMTP id ke10mr123obb.42.1391713079419; Thu, 06 Feb 2014 10:57:59 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!uq10no10198302igb.0!news-out.google.com!gj3ni3igc.0!nntp.google.com!uq10no10198294igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 6 Feb 2014 10:57:59 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=66.126.103.122; posting-account=KSa2aQoAAACOxnC0usBJYX8NE3x3a1Xq NNTP-Posting-Host: 66.126.103.122 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Need help for constrained type From: adambeneschan@gmail.com Injection-Date: Thu, 06 Feb 2014 18:57:59 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:18405 Date: 2014-02-06T10:57:59-08:00 List-Id: On Thursday, February 6, 2014 10:37:30 AM UTC-8, Niklas Holsti wrote: > >> (If you want to allow an empty Usage_Info, indexed 0..-1 for > >> example, you must of course declare Memory_Block.last using some > >> range which includes negative numbers, for example Integer.) >=20 > > That actually isn't true.=20 >=20 > It is here, I think, because the upper bound comes from a discriminant, > where subtypes are checked more strictly. Sorry, I misunderstood your point. Yes, you'd need to make sure the discri= minant subtype can handle the upper bound. But the array *index* subtype c= an still be "Natural range <>". Now that I rechecked, I see that I just di= dn't read your previous post carefully. -- Adam