Re: Range constraints on subprogram parameters?
- From: Peter Hermann <ica2ph@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 29 Sep 2005 08:30:31 +0000 (UTC)
Jeffrey R. Carter <spam@xxxxxxxx> wrote:
> Bobby D. Bryant wrote:
> > Is it possible to specify range constraints for subprogram parameters?
> >
> > E.g., if you want to require a floating point value in the range [0,1].
>
> Of course:
>
> type Zip_2_1 is digits 6 range 0.0 .. 1.0;
>
> procedure Op (Number : in Zip_2_1);
procedure Op (Number : in Zip_2_1 range 0.3 .. 0.7);
may have been the original question?
--
--Peter Hermann(49)0711-685-87244 ihrph@xxxxxxxxxxxxxxxxxxxx
--Nobelstr.19 Raum 0.030, D-70569 Stuttgart IHR Hoechstleistungsrechnen
--http://www.csv.ica.uni-stuttgart.de/homes/ph/ external fax-3644
.
- Follow-Ups:
- Re: Range constraints on subprogram parameters?
- From: Bobby D. Bryant
- Re: Range constraints on subprogram parameters?
- From: Jeffrey R. Carter
- Re: Range constraints on subprogram parameters?
- From: Martin Dowie
- Re: Range constraints on subprogram parameters?
- References:
- Range constraints on subprogram parameters?
- From: Bobby D. Bryant
- Re: Range constraints on subprogram parameters?
- From: Jeffrey R. Carter
- Range constraints on subprogram parameters?
- Prev by Date: Re: Constructing an object
- Next by Date: OT: Re: GNAT GPL - Anonymous Access Type
- Previous by thread: Re: Range constraints on subprogram parameters?
- Next by thread: Re: Range constraints on subprogram parameters?
- Index(es):