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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fd3a5ba6349a6060 X-Google-Attributes: gid103376,public From: robert_dewar@my-dejanews.com Subject: Re: should I be interested in ada? Date: 1999/02/25 Message-ID: <7b3erf$l5i$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 448271294 References: <7a72e6$g55$1@probity.mcc.ac.uk> <36C93BB4.1429@ecs.soton.ac.uk> <7afc1o$3mi$2@plug.news.pipex.net> <7afttr$7v3$1@nnrp1.dejanews.com> <7aganu$qsc$1@plug.news.pipex.net> <36CC3AEA.59E2@lanl.gov> <7ai502$6an$1@nnrp1.dejanews.com> <36CD8DBA.237C@lanl.gov> <7akvao$j5t$2@plug.news.pipex.net> <36D1D862.41C6@lanl.gov> <7av53r$goc$2@plug.news.pipex.net> <36D33B65.446B@lanl.gov> <7b2j2u$drp$1@plug.news.pipex.net> X-Http-Proxy: 1.0 x2.dejanews.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Thu Feb 25 12:14:44 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-02-25T00:00:00+00:00 List-Id: In article <7b2j2u$drp$1@plug.news.pipex.net>, "Nick Roberts" wrote: > In the case of the Reorder procedure example I gave, a > part of X could be reordered simply by passing a part of > it into the call, e.g.: > > Reorder(X(a..b),J); This misses a central point. Slices in Ada can only be applied to one dimensional arrays. This (very understandable) restriction is a significant one in the context of numerical codes dealing with multi- dimensional arrays. The reason for the restriction is of course that otherwise strides are not known at compile time in many cases where they are known now, and that is a worrisome inefficiency. (this has been well studied in the context of Algol-68, which as far as I know was the first main stream language to allow general slicing). -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own