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.246.136 with SMTP id xw8mr14075089pac.14.1472761012463; Thu, 01 Sep 2016 13:16:52 -0700 (PDT) X-Received: by 10.157.13.19 with SMTP id 19mr1784786oti.15.1472761012417; Thu, 01 Sep 2016 13:16:52 -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!news.glorb.com!i184no419067itf.0!news-out.google.com!b4ni6860iti.0!nntp.google.com!e124no418724ith.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 1 Sep 2016 13:16:52 -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> <8955f6b0-18c6-41b9-91bf-b756189f53db@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <25e18dab-52ac-4082-aaa2-f7458be9be2c@googlegroups.com> Subject: Re: Subtype predicates From: Shark8 Injection-Date: Thu, 01 Sep 2016 20:16:52 +0000 Content-Type: text/plain; charset=UTF-8 Xref: news.eternal-september.org comp.lang.ada:31685 Date: 2016-09-01T13:16:52-07:00 List-Id: On Wednesday, August 31, 2016 at 12:16:54 PM UTC-6, Randy Brukardt wrote: > "Shark8" wrote in message > ... > > 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; > > We examined that extensively, since someone (you, perhaps??) already > suggested it. It's a can of worms, in fact a case of worms. See AI12-0123-1 > for some problems. > > The odds of Ada adding this attribute are roughly the same as me marrying a > supermodel. > > Randy. In this particular case it could be like the Fn'Result attribute: only available/valid in the function's aspects -- only in this case being the type's.