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.182.230.132 with SMTP id sy4mr4237891obc.48.1399910942058; Mon, 12 May 2014 09:09:02 -0700 (PDT) X-Received: by 10.50.143.71 with SMTP id sc7mr511893igb.4.1399910941901; Mon, 12 May 2014 09:09:01 -0700 (PDT) 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!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.glorb.com!c1no5184430igq.0!news-out.google.com!gi6ni804igc.0!nntp.google.com!c1no5184429igq.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 12 May 2014 09:09:01 -0700 (PDT) In-Reply-To: <87bnv3nomb.fsf@adaheads.sparre-andersen.dk> 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: <87bnv3nomb.fsf@adaheads.sparre-andersen.dk> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Shouldn't there be a paragraph like 7.3.2(5/3) in 3.2.4? From: Adam Beneschan Injection-Date: Mon, 12 May 2014 16:09:01 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:19785 Date: 2014-05-12T09:09:01-07:00 List-Id: On Monday, May 12, 2014 5:54:52 AM UTC-7, Jacob Sparre Andersen wrote: > Reading the fine print on subtype predicates and type invariants, I > noticed that section 3.2.4 (on subtype predicates) doesn't have a > paragraph matching 7.3.2(5/3) (on type invariants). >=20 > 7.3.2(5/3): Within an invariant expression, the identifier of the first > subtype of the associated type denotes the current instance > of the type. Within an invariant expression associated with > type T, the type of the current instance is T for the > Type_Invariant aspect and T'Class for the > Type_Invariant'Class aspect. FYI, the first sentence is true for both subtype predicates and type invari= ants. It's actually redundant in 7.3.2(5/3), and the AARM shows it as such= (http://www.ada-auth.org/standards/12aarm/html/AA-7-3-2.html); 13.1.1(12/3= ) applies to all aspect clauses on type and subtype declarations. I'd gues= s that the authors felt that in 7.3.2(5/3), they needed to repeat the rule = in the first sentence in order to provide some context to help readers unde= rstand the second sentence. -- Adam