Re: Range constraints on subprogram parameters?



On Thu, 29 Sep 2005, "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);

Thanks; I had missed that feature. It's not what I need right now, but
I may be able to use it for some related problems.

--
Bobby Bryant
Austin, Texas
.



Relevant Pages