comp.lang.ada
 help / color / mirror / Atom feed
From: Brian Drummond <brian_drummond@btconnect.com>
Subject: Re: slicing bidimensional arrays
Date: Sat, 09 Aug 2008 15:16:09 +0100
Date: 2008-08-09T15:16:09+01:00	[thread overview]
Message-ID: <7l9r94l1ganjppk0jiljmtrvopk8v4aal5@4ax.com> (raw)
In-Reply-To: 07860302-6075-4b1e-bad6-cedd78c1299f@s50g2000hsb.googlegroups.com

On Fri, 8 Aug 2008 08:26:42 -0700 (PDT), amado.alves@gmail.com wrote:

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

Barnes ("Programming in Ada 2005") discusses some interesting
possibilities for slicing - not using a 2-D array, but an array of
arrays. The array can be sliced; as can each individual array. I don't
know if this would help in your situation, but it is another tool in the
box.

- Brian




      reply	other threads:[~2008-08-09 14:16 UTC|newest]

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

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