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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7b0b4f2e1fdc6b2c,start X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!s50g2000hsb.googlegroups.com!not-for-mail From: amado.alves@gmail.com Newsgroups: comp.lang.ada Subject: slicing bidimensional arrays Date: Fri, 8 Aug 2008 08:26:42 -0700 (PDT) Organization: http://groups.google.com Message-ID: <07860302-6075-4b1e-bad6-cedd78c1299f@s50g2000hsb.googlegroups.com> NNTP-Posting-Host: 193.136.27.133 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1218209204 22553 127.0.0.1 (8 Aug 2008 15:26:44 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 8 Aug 2008 15:26:44 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s50g2000hsb.googlegroups.com; posting-host=193.136.27.133; posting-account=3cDqWgoAAAAZXc8D3pDqwa77IryJ2nnY User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.22,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:1553 Date: 2008-08-08T08:26:42-07:00 List-Id: 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.