comp.lang.ada
 help / color / mirror / Atom feed
* When enumerating does Ada enumerated type goes up to up to Integer'Last or System.Max_Int
@ 2018-03-22 18:44 Bojan Bozovic
  2018-03-22 18:50 ` Shark8
  2018-03-22 21:21 ` Jeffrey R. Carter
  0 siblings, 2 replies; 7+ messages in thread
From: Bojan Bozovic @ 2018-03-22 18:44 UTC (permalink / raw)


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).

Thanks for the answer. Maybe its there written in AARM but wording is terse.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-03-23  5:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2018-03-23  5:04   ` Bojan Bozovic

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