From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5556ca7de188d5ef X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-12-12 16:38:17 PST Path: archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.mathworks.com!wn3feed!worldnet.att.net!135.173.83.72!wnfilter2!worldnet-localpost!bgtnsc06-news.ops.worldnet.att.net.POSTED!not-for-mail Message-ID: <3C17F5BF.AEBE40C3@worldnet.att.net> From: James Rogers X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Multidimensional array vs. array of array References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 13 Dec 2001 00:26:19 GMT NNTP-Posting-Host: 63.28.210.100 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc06-news.ops.worldnet.att.net 1008203179 63.28.210.100 (Thu, 13 Dec 2001 00:26:19 GMT) NNTP-Posting-Date: Thu, 13 Dec 2001 00:26:19 GMT Organization: AT&T Worldnet Xref: archiver1.google.com comp.lang.ada:17871 Date: 2001-12-13T00:26:19+00:00 List-Id: 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