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.9 required=5.0 tests=BAYES_00,DATE_IN_PAST_12_24 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.230.98 with SMTP id sx2mr6715947pbc.1.1335590893581; Fri, 27 Apr 2012 22:28:13 -0700 (PDT) Path: r9ni107047pbh.0!nntp.google.com!news1.google.com!news.glorb.com!solaris.cc.vt.edu!news.vt.edu!newsfeed-00.mathworks.com!nntp.TheWorld.com!.POSTED!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Can Ada iterate over Nd array? Date: Fri, 27 Apr 2012 09:46:46 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <26754113.2767.1335431755764.JavaMail.geo-discussion-forums@vbki8> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 X-Trace: pcls6.std.com 1335534406 15876 192.74.137.71 (27 Apr 2012 13:46:46 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Fri, 27 Apr 2012 13:46:46 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:MU+gLPUdyvNl08tnAo+L7xe4U5w= Content-Type: text/plain; charset=us-ascii Date: 2012-04-27T09:46:46-04:00 List-Id: BrianG writes: > If what is desired is an "n-dimensional array" (i.e. n is a parameter of > some sort - generic or procedure parameter), what are you going to do > with it, even if you can iterate? How do you declare such a type? If > it's to be used as a library to work on "n-dimensional arrays", how do > you specify subroutine parameters? (Except as a raw memory address or > equivalent.) APL answers these questions (also J). It's a rather different language than Ada. ;-) - Bob