comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam@spam.com>
Subject: Re: Range constraints on subprogram parameters?
Date: Thu, 29 Sep 2005 05:39:28 GMT
Date: 2005-09-29T05:39:28+00:00	[thread overview]
Message-ID: <k6L_e.4417$zQ3.2110@newsread1.news.pas.earthlink.net> (raw)
In-Reply-To: <dhespm$kao$1@geraldo.cc.utexas.edu>

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);

-- 
Jeff Carter
"What I wouldn't give for a large sock with horse manure in it."
Annie Hall
42



  reply	other threads:[~2005-09-29  5:39 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 [this message]
2005-09-29  8:30   ` Peter Hermann
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