comp.lang.ada
 help / color / mirror / Atom feed
* Null Range in Unconstrasined Array
@ 2009-09-01  1:28 Rick
  2009-09-01  3:11 ` Randy Brukardt
  2009-09-01 14:50 ` Adam Beneschan
  0 siblings, 2 replies; 11+ messages in thread
From: Rick @ 2009-09-01  1:28 UTC (permalink / raw)


If I have an unconstrained array type 'My_Array_Type' and declare an
instance of it as:

My_Array : My_Array_Type (1 .. 0);

then the LRM tells me it is a null range:

3.5 (4): A range with lower bound L and upper bound R is described by
“L .. R”. If R is less than L, then the range is a null range, and
specifies an empty set of values.

What, exactly, is My_Array (forgive the language) pointing to?
Is any memory allocated to My_Array?

--------------------------------------------
Rick Duley
North Perth,
Western Australia
--------------------------------------------



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

end of thread, other threads:[~2009-09-10 23:24 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-01  1:28 Null Range in Unconstrasined Array Rick
2009-09-01  3:11 ` Randy Brukardt
2009-09-01 14:50 ` Adam Beneschan
2009-09-01 15:34   ` Robert A Duff
2009-09-06 12:11     ` Peter C. Chapin
2009-09-06 12:41       ` Robert A Duff
2009-09-08 17:54         ` Adam Beneschan
2009-09-09  8:35           ` Stephen Leake
2009-09-09 13:00             ` Robert A Duff
2009-09-09 19:22             ` sjw
2009-09-10 23:24               ` Stephen Leake

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