comp.lang.ada
 help / color / mirror / Atom feed
From: James Rogers <jimmaureenrogers@worldnet.att.net>
Subject: Re: Multidimensional array vs. array of array
Date: Thu, 13 Dec 2001 00:26:19 GMT
Date: 2001-12-13T00:26:19+00:00	[thread overview]
Message-ID: <3C17F5BF.AEBE40C3@worldnet.att.net> (raw)
In-Reply-To: slrna1e5tv.kc.lutz@taranis.iks-jena.de



Lutz Donnerhacke wrote:
> 
> I read all the discussions about Ada83/95 multidimensional arrays and know
> where the limitation comes from. But I still ask: How does a skilled Ada
> programmer return a array of arrays?

You can do it two different ways:

1) Put the array of arrays in a record and return the record
2) Create an access type for the array of arrays. Dynamically
   allocate the array of arrays, and return its access value.

Jim Rogers
Colorado Springs, Colorado USA



  reply	other threads:[~2001-12-13  0:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-11 22:22 Multidimensional array vs. array of array Lutz Donnerhacke
2001-12-11 22:45 ` Mark Lundquist
2001-12-17 15:56   ` Lutz Donnerhacke
2001-12-11 23:03 ` Stephen Leake
2001-12-12  8:39   ` Lutz Donnerhacke
2001-12-13  0:26     ` James Rogers [this message]
2001-12-13  9:02       ` Lutz Donnerhacke
2001-12-13 21:49         ` Nick Roberts
2001-12-14  9:45           ` Lutz Donnerhacke
replies disabled

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