From: Nick Roberts <nick.roberts@acm.org>
Subject: Re: New limited range type?
Date: Tue, 11 Nov 2003 05:13:05 +0000
Date: 2003-11-11T05:13:05+00:00 [thread overview]
Message-ID: <bopr58$1hil7c$1@ID-25716.news.uni-berlin.de> (raw)
In-Reply-To: <af783afe.0311090634.7b143993@posting.google.com>
Martin Dowie wrote:
>> function S'Conform (X: in universal_real) return S;
>
> I can cope with that - although I don't like the name much.
I agree, Conform is not good.
> How about:
>
> function S'Limit (X:...
Or maybe Limit_to_Bounds? Wordy, but clearer.
>>Note how I define a fixed point type to provide a big enough base range (in
>>this case 50 complete turns either way) for all calculations, and then a
>>subtype of it to define the required confined or normalised range.
>
> While that's good technique, I presume your NOT saying that the RM would
> require this?
I thinkj it would be necessary to adopt this approach, since the base range
required cannot be guessed. I think the neatest solution is to require a
named type with this range to be declared, and then subtypes with the
required limited ranges to be declared and used to indicate the bounds of
the operation.
> Also, why not allow it for any scalar type?
Yes, I think you're right. Shall I send a proposal to ada-comment?
--
Nick Roberts
next prev parent reply other threads:[~2003-11-11 5:13 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-07 15:51 New limited range type? Martin Dowie
2003-11-07 15:57 ` Hyman Rosen
2003-11-07 16:20 ` Martin Dowie
2003-11-07 16:36 ` Stephane Richard
2003-11-07 16:59 ` Hyman Rosen
2003-11-07 18:18 ` Martin Dowie
2003-11-07 20:11 ` Larry Hazel
2003-11-07 22:40 ` Martin Dowie
2003-11-07 23:31 ` Larry Hazel
2003-11-12 8:22 ` Jean-Pierre Rosen
2003-11-12 15:00 ` Hyman Rosen
2003-11-12 15:34 ` Robert I. Eachus
2003-11-12 17:37 ` tmoran
2003-11-07 18:19 ` Mike Silva
2003-11-07 19:03 ` Marin David Condic
2003-11-07 18:05 ` Mike Silva
2003-11-08 21:58 ` Nick Roberts
2003-11-09 14:34 ` Martin Dowie
2003-11-11 5:13 ` Nick Roberts [this message]
2003-11-11 10:18 ` Martin Dowie
2003-11-11 10:35 ` Martin Dowie
2003-11-11 10:41 ` Lutz Donnerhacke
2003-11-11 12:37 ` Marin David Condic
2003-11-11 14:19 ` Martin Dowie
2003-11-11 12:34 ` Marin David Condic
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox