comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.not.jrcarter@acm.not.spam.org>
Subject: Re: How to extract range from array
Date: Mon, 20 Mar 2006 21:51:01 GMT
Date: 2006-03-20T21:51:01+00:00	[thread overview]
Message-ID: <9tFTf.874590$xm3.360574@attbi_s21> (raw)
In-Reply-To: <2901131.Fq1M6N3cKt@linux1.krischik.com>

Martin Krischik wrote:
> 
>  subtype Positive is Integer range 1 .. +(2 ** 31 - 1);

The declaration of Positive is defined by ARM A.1, and so is the same for all 
implementations:

subtype Positive is Integer range 1 .. Integer'Last;

An implementation that used +(2 ** 31 - 1) instead of Integer'Last would not be Ada.

Of course, the meaning of Integer'Last depends on the definition of Integer, 
which is implementation defined, but the declaration of Positive is the same.

-- 
Jeff Carter
"From this day on, the official language of San Marcos will be Swedish."
Bananas
28



  parent reply	other threads:[~2006-03-20 21:51 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-17 11:23 How to extract range from array Maciej Sobczak
2006-03-17 12:29 ` Ed Falis
2006-03-17 15:12 ` Martin Krischik
2006-03-20 10:04   ` Maciej Sobczak
2006-03-20 13:14   ` Maciej Sobczak
2006-03-20 13:58     ` Ed Falis
2006-03-20 14:20     ` Dmitry A. Kazakov
2006-03-20 15:31     ` Robert A Duff
2006-03-20 19:01     ` Martin Krischik
2006-03-20 20:20       ` Georg Bauhaus
2006-03-20 21:51       ` Jeffrey R. Carter [this message]
2006-03-21 19:12         ` Martin Krischik
replies disabled

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