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.129.115.2 with SMTP id o2mr4198879ywc.55.1472083702293; Wed, 24 Aug 2016 17:08:22 -0700 (PDT) X-Received: by 10.157.6.44 with SMTP id 41mr557375otn.10.1472083702259; Wed, 24 Aug 2016 17:08:22 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!j37no10476244qta.0!news-out.google.com!d130ni45864ith.0!nntp.google.com!f6no12750003ith.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 24 Aug 2016 17:08:22 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=174.28.146.45; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC NNTP-Posting-Host: 174.28.146.45 References: <68b89d71-dd92-4b9c-adb9-476a7caa64cf@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <8955f6b0-18c6-41b9-91bf-b756189f53db@googlegroups.com> Subject: Re: Subtype predicates From: Shark8 Injection-Date: Thu, 25 Aug 2016 00:08:22 +0000 Content-Type: text/plain; charset=UTF-8 X-Received-Bytes: 1737 X-Received-Body-CRC: 311959278 Xref: news.eternal-september.org comp.lang.ada:31555 Date: 2016-08-24T17:08:22-07:00 List-Id: > No, it's because of ARM 13.1.1(12/3): "If the associated declaration is a > type_declaration, within the aspect_definition ... the name of the first subtype > denotes the current instance of the type (see 8.6)." For a declaration: > > V : Human_Life_Span_Type; > > the current instance is V, so this says V's default value is V'First. Since you > can't apply 'First to a scalar object, the aspect is in error. Hm, another argument for a 'Type attribute, then we could say type Human_Life_Span is range 0 .. 130 with Default_Value => Human_Life_Span'Type'First;