comp.lang.ada
 help / color / mirror / Atom feed
From: Rick <rickduley@gmail.com>
Subject: Indexing unconstrained arrays
Date: Sat, 29 Aug 2009 21:43:56 -0700 (PDT)
Date: 2009-08-29T21:43:56-07:00	[thread overview]
Message-ID: <7de92fda-d0e3-4b6a-82e3-71881536c8b6@d4g2000prc.googlegroups.com> (raw)

If I have an unconstrained array progressively built from a NULL array

My_Array : Unconstrained_Array_Type (1 .. 0);

to an array of five cells, it should be indexed 1 .. 5.  Suppose then
that I remove cell My_Array (3) by a bit of slicing and splicing.

Does the indexing of the four-cell array that is left run

1 - 2 - 3 - 4

or does it run

1 - 2 - 4 - 5 ?

--------------------------------------------
Rick Duley
North Perth,
Western Australia
http://rickduley.webs.com
--------------------------------------------



             reply	other threads:[~2009-08-30  4:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-30  4:43 Rick [this message]
2009-08-30  8:39 ` Indexing unconstrained arrays Pascal Obry
2009-08-31 15:29 ` 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