From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Subtype predicates
Date: Wed, 24 Aug 2016 17:31:25 -0700
Date: 2016-08-24T17:31:25-07:00 [thread overview]
Message-ID: <nple8u$u2$1@dont-email.me> (raw)
In-Reply-To: <8955f6b0-18c6-41b9-91bf-b756189f53db@googlegroups.com>
On 08/24/2016 05:08 PM, Shark8 wrote:
>
> 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;
Perhaps. The ARG seem leary of adding features where there's a work around, and
you can always say
type Human_Life_Span is range 0 .. 130 with
Default_Value => 0;
If you're worried about Human_Life_Span'First and its default value diverging,
you can instead say
Human_Life_Span_First : constant := 0;
type Human_Life_Span is range Human_Life_Span_First .. 130 with
Default_Value => Human_Life_Span_First;
--
Jeff Carter
"He had no conception of the instrument. He
was blowing into it."
Take the Money and Run
135
next prev parent reply other threads:[~2016-08-25 0:31 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-23 20:14 Subtype predicates Anh Vo
2016-08-24 13:06 ` AdaMagica
2016-08-24 16:45 ` Shark8
2016-08-24 21:18 ` Anh Vo
2016-08-24 21:32 ` Shark8
2016-08-24 21:54 ` Jeffrey R. Carter
2016-08-25 0:08 ` Shark8
2016-08-25 0:31 ` Jeffrey R. Carter [this message]
2016-08-25 17:28 ` Anh Vo
2016-08-31 18:16 ` Randy Brukardt
2016-09-01 8:09 ` J-P. Rosen
2016-09-01 20:02 ` Randy Brukardt
2016-09-01 20:16 ` Shark8
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox