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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,aa7f494bf30adbc7 X-Google-Attributes: gid103376,public Path: g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local1.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 19 Jun 2004 14:51:34 -0500 Date: Sat, 19 Jun 2004 15:51:33 -0400 From: "Robert I. Eachus" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: [newbie] simple(?) data structures References: <2j1e30Fsrg8vU1@uni-berlin.de> <2jao1qFvj2rgU1@uni-berlin.de> <2jc33qFv3sitU1@uni-berlin.de> <1087475845.607135@master.nyc.kbcfp.com> <10267207.GmbXj46X37@linux1.krischik.com> In-Reply-To: <10267207.GmbXj46X37@linux1.krischik.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 24.147.90.114 X-Trace: sv3-Bt1cPUtgm1JF2RG349MmzACZ7EuTYC15lbnfpZBdHE7n9M9HbB6KoCIcgDy621cTzGg5gdDwMTCPYV4!TmGHdU653/j9HWGlY3ph9ySdqvyKGy4D7cCBNZEZeyF39SXkyV70xqf8S7Hsaw== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net 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.1 Xref: g2news1.google.com comp.lang.ada:1698 Date: 2004-06-19T15:51:33-04:00 List-Id: Martin Krischik wrote: > I allways thought that: > > My_Function (My_Data ( 20 .. Data'Last)) > > was the answer to that problem. And I find that a lot more elegant then a > pointer. Of corse the compiler might still us a pointer internally. Yes, slices in Ada are the solution for one-dimensional data, which is by far the most common case. However, PL/I allowed multidimensional slicing, and it is the one PL/I feature that I miss in Ada. Of course, not many people program matrix multiplication and inversion in a way that requires multidimensional slicing. ;-) -- Robert I. Eachus "Reason and experience both forbid us to expect that national morality can prevail in exclusion of religious principles." -- George Washington