comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: When enumerating does Ada enumerated type goes up to up to Integer'Last or System.Max_Int
Date: Thu, 22 Mar 2018 22:21:26 +0100
Date: 2018-03-22T22:21:26+01:00	[thread overview]
Message-ID: <p916om$mpl$1@dont-email.me> (raw)
In-Reply-To: <dc47e68e-ce35-4685-a72f-dbee667ae2a2@googlegroups.com>

On 03/22/2018 07:44 PM, Bojan Bozovic wrote:
> http://www.adaic.org/resources/add_content/standards/05aarm/html/AA-3-5-1.html
> 
> Now this is more theory question as Ada Integer'Last is guaranteed to be at least 2**15-1 and perhaps nobody exhausted it by enumerating in practice, but that is minimal Integer'Last and nothing prevents implementation to have bigger System.Max_Int than its Integer'Last (as its in current GNAT which have System.Max_Int of 2**63-1).

Character types are enumeration types, and therefore, technically, 
Wide_Wide_Character is an enumeration type with 2 ** 32 values. Since 'Pos is 
universal integer, presumably systems can handle up to System.Max_Binary_Modulus 
values.

-- 
Jeff Carter
"So if I understand 'The Matrix Reloaded' correctly, the Matrix is
basically a Microsoft operating system--it runs for a while and
then crashes and reboots. By design, no less. Neo is just a
memory leak that's too hard to fix, so they left him in ... The
users don't complain because they're packed in slush and kept
sedated."
Marin D. Condic
65

  parent reply	other threads:[~2018-03-22 21:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-22 18:44 When enumerating does Ada enumerated type goes up to up to Integer'Last or System.Max_Int Bojan Bozovic
2018-03-22 18:50 ` Shark8
2018-03-22 19:03   ` Bojan Bozovic
2018-03-22 19:04     ` Shark8
2018-03-22 19:08       ` Bojan Bozovic
2018-03-22 21:21 ` Jeffrey R. Carter [this message]
2018-03-23  5:04   ` Bojan Bozovic
replies disabled

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