comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.acm.org>
Subject: Re: Standard missing a 'Negative' subtype?...
Date: Sat, 14 Sep 2013 20:28:35 -0700
Date: 2013-09-14T20:28:35-07:00	[thread overview]
Message-ID: <l139h6$19qq$1@adenine.netfront.net> (raw)
In-Reply-To: <7b66c649-3796-41ea-b734-a2b14d2dbac3@googlegroups.com>

On 09/14/2013 01:49 AM, Martin wrote:
> Why is there no "Negative" predefined subtype in package Standard?...
>
> An implicit substype, something like:
>
> subtype Negative is Integer range Integer'First .. -1;
>
> I would have thought this would fit nicely with 'Natural' and 'Positive'. Obviously not needed as often as those two,
> but when I finally did need it, it wasn't there!

Nor are there Non_Negative (Integer'First .. 0), Reasonable_String_Index (1 .. 256 [or something]), or many others one 
could think of. Natural and Positive are used in the definition of other things in the ARM; nothing needed Negative (or 
any other subtypes).

-- 
Jeff Carter
"Now go away or I shall taunt you a second time."
Monty Python and the Holy Grail

--- news://freenews.netfront.net/ - complaints: news@netfront.net ---

  parent reply	other threads:[~2013-09-15  3:28 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-14  8:49 Standard missing a 'Negative' subtype? Martin
2013-09-14  9:14 ` Dmitry A. Kazakov
2013-09-14 19:13 ` mockturtle
2013-10-01  2:45   ` J Kimball
2013-09-14 19:57 ` Shark8
2013-09-15  3:28 ` Jeffrey R. Carter [this message]
2013-09-15  7:36   ` Simon Wright
2013-09-15 16:07     ` Jeffrey R. Carter
2013-09-15 16:49     ` Martin
2013-09-15 17:51       ` J-P. Rosen
2013-09-16 17:44       ` Adam Beneschan
replies disabled

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