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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7b0b4f2e1fdc6b2c X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 09 Aug 2008 09:10:36 -0500 From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: slicing bidimensional arrays Date: Sat, 09 Aug 2008 15:16:09 +0100 Reply-To: brian@shapes.demon.co.uk Message-ID: <7l9r94l1ganjppk0jiljmtrvopk8v4aal5@4ax.com> References: <07860302-6075-4b1e-bad6-cedd78c1299f@s50g2000hsb.googlegroups.com> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-rLG/9dSAazCw8pS8cjXGYczFTp/1haH6syGXtg6/f2PwYW0ZPaZkXu0becIelm2V3H6RO8FBD+trVYi!eGg0ZfNt7OcR51Fgq0yNhBlvjFjL+HxKjNirHuDaP9VNocKDe55U81ujGNNg+okofWKf9Zc9NDBf!4hc= X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39 Xref: g2news1.google.com comp.lang.ada:1581 Date: 2008-08-09T15:16:09+01:00 List-Id: 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