From: Peter Hermann <ica2ph@csv.ica.uni-stuttgart.de>
Subject: Re: Range constraints on subprogram parameters?
Date: Thu, 29 Sep 2005 08:30:31 +0000 (UTC)
Date: 2005-09-29T08:30:31+00:00 [thread overview]
Message-ID: <dhg8n7$s9t$1@infosun2.rus.uni-stuttgart.de> (raw)
In-Reply-To: k6L_e.4417$zQ3.2110@newsread1.news.pas.earthlink.net
Jeffrey R. Carter <spam@spam.com> 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@ihr.uni-stuttgart.de
--Nobelstr.19 Raum 0.030, D-70569 Stuttgart IHR Hoechstleistungsrechnen
--http://www.csv.ica.uni-stuttgart.de/homes/ph/ external fax-3644
next prev parent reply other threads:[~2005-09-29 8:30 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-28 20:00 Range constraints on subprogram parameters? Bobby D. Bryant
2005-09-29 5:39 ` Jeffrey R. Carter
2005-09-29 8:30 ` Peter Hermann [this message]
2005-09-29 9:06 ` Martin Dowie
2005-09-29 18:16 ` Jeffrey R. Carter
2005-09-30 2:23 ` Bobby D. Bryant
2005-09-30 5:46 ` Jeffrey R. Carter
2005-10-01 1:07 ` Randy Brukardt
2005-10-01 3:50 ` Jeffrey R. Carter
2005-10-01 14:36 ` Robert A Duff
2005-10-01 14:41 ` Robert A Duff
2005-09-30 2:24 ` Bobby D. Bryant
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox