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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,81bb2ce65a3240c3 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.205.130.144 with SMTP id hm16mr2198650bkc.5.1341330093953; Tue, 03 Jul 2012 08:41:33 -0700 (PDT) Path: y28ni10721bky.0!nntp.google.com!news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!feeder.news.orange.fr!not-for-mail Date: Tue, 03 Jul 2012 17:41:33 +0200 From: Pascal Obry Organization: Home - http://www.obry.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; fr-FR; rv:1.8.1.22) Gecko/20090605 Thunderbird/2.0.0.22 Mnenhy/0.7.5.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: What would you like in Ada202X? References: <3637793.35.1335340026327.JavaMail.geo-discussion-forums@ynfi5> In-Reply-To: Message-ID: <4ff312ad$0$6178$ba4acef3@reader.news.orange.fr> NNTP-Posting-Date: 03 Jul 2012 17:41:33 CEST NNTP-Posting-Host: 90.2.74.49 X-Trace: 1341330093 reader.news.orange.fr 6178 90.2.74.49:15507 X-Complaints-To: abuse@orange.fr Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Date: 2012-07-03T17:41:33+02:00 List-Id: I think it would be nice to be able to slice an array of any dimention. -- This is Ada type T is array (Positive range <>, Positive range <>) of Integer; A : T (1 .. 10, 1 .. 100); -- This could be Ada 202X B : T := A (2 .. 3, 3 .. 8); Ok it is possible to do that with loop, but that's also true for simple slice. I suppose also that in such a slice the compiler will be able to generate efficient code (probably better than a using loop) depending on the memory representation for the array. Thoughts? Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.net - http://v2p.fr.eu.org --| "The best way to travel is by means of imagination" --| --| gpg --keyserver keys.gnupg.net --recv-key F949BD3B