comp.lang.ada
 help / color / mirror / Atom feed
From: Shark8 <onewingedshark@gmail.com>
Subject: Re: Ada202X : alternate syntax for ranged scalars
Date: Fri, 26 Apr 2013 07:46:42 -0700 (PDT)
Date: 2013-04-26T07:46:42-07:00	[thread overview]
Message-ID: <24988143-cde0-47c6-b4dc-e9e259ea7030@googlegroups.com> (raw)
In-Reply-To: <e6ff10e3-c7f5-4b73-b379-55dcdbdbf84b@googlegroups.com>

On Friday, April 26, 2013 6:53:26 AM UTC-6, AdaMagica wrote:
> On Friday, April 26, 2013 12:10:01 PM UTC+2, Martin wrote:
> >
> > Sometimes we would like to specify a 'half open range', e.g. values of degree from 0.0 up to BUT NOT INCLUDING 360.0. 
> 
> What about the attributes Succ and Pred RM 3.5 (22-27)?
>  
> type Angle is digits D;
> subtype Normalized_Angle is Angle range -180.0 .. Angle'Pred (+180.0);

Yes, that should work much better.



  reply	other threads:[~2013-04-26 14:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-26 10:10 Ada202X : alternate syntax for ranged scalars Martin
2013-04-26 10:35 ` Peter C. Chapin
2013-04-26 12:26 ` Eryndlia Mavourneen
2013-05-02  2:11   ` Randy Brukardt
2013-05-02 13:29     ` Eryndlia Mavourneen
2013-04-26 12:53 ` AdaMagica
2013-04-26 14:46   ` Shark8 [this message]
2013-04-28  2:11   ` Stephen Leake
2013-04-26 16:55 ` Jeffrey Carter
2013-05-02 23:05 ` Jerry
2013-05-14 22:30 ` Martin
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox