comp.lang.ada
 help / color / mirror / Atom feed
From: amado.alves@gmail.com
Subject: slicing bidimensional arrays
Date: Fri, 8 Aug 2008 08:26:42 -0700 (PDT)
Date: 2008-08-08T08:26:42-07:00	[thread overview]
Message-ID: <07860302-6075-4b1e-bad6-cedd78c1299f@s50g2000hsb.googlegroups.com> (raw)

I want to slice a bidimensional array. Or extract/view a row thereof
as a unidimensional array (of the same component type of course). This
is illegal in Ada. So I am designing a slicer/extractor/viewer
subprogram. The arrays can be large, so I want to approximate the
efficiency of view conversions. I'd appreciate confirmation/
infirmation of the following premises.

The internal representation of a bidimensional array is one row after
the other sans separators.
This representation equates that of a unidimensional array (of the
same component type).
All this excluding the range information of course, i.e. looking only
at the data part.
So we can safely (unchecked?) convert between the two array types.

Thanks a lot.



             reply	other threads:[~2008-08-08 15:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-08 15:26 amado.alves [this message]
2008-08-09 14:16 ` slicing bidimensional arrays Brian Drummond
replies disabled

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