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,35edde140291c79e X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.197.193 with SMTP id iw1mr5364450pbc.0.1335427371352; Thu, 26 Apr 2012 01:02:51 -0700 (PDT) Path: r9ni99897pbh.0!nntp.google.com!news1.google.com!news.glorb.com!feeder.erje.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Can Ada iterate over Nd array? Date: Thu, 26 Apr 2012 10:01:39 +0200 Organization: cbb software GmbH Message-ID: <18y0zty0yw1m3.1dkfnp5etqdk0$.dlg@40tude.net> References: Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-04-26T10:01:39+02:00 List-Id: On Thu, 26 Apr 2012 06:02:13 +0000 (UTC), Okasu wrote: > So you trying to say that i have to write loops for 10/100/1000d arrays > by hand? You should introduce an index type of your own (a Nth tuple) and use a flat container, e.g. a map over that index. Unfortunately Ada does not have 1st class indices, which was #10 in my wish list for Ada 202X. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de