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 autolearn=ham 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.232.42 with SMTP id tl10mr8885353pbc.7.1335524971122; Fri, 27 Apr 2012 04:09:31 -0700 (PDT) Path: r9ni104139pbh.0!nntp.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!novia!nx02.iad01.newshosting.com!newshosting.com!69.16.185.11.MISMATCH!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Can Ada iterate over Nd array? References: Date: Fri, 27 Apr 2012 07:09:29 -0400 Message-ID: <82k411e8ie.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (windows-nt) Cancel-Lock: sha1:j8wbQZBgU2rACF+9lbjq0qdGM5E= MIME-Version: 1.0 X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: b43e64f9a7e6ae029e66113048 X-Received-Bytes: 1157 Content-Type: text/plain; charset=us-ascii Date: 2012-04-27T07:09:29-04:00 List-Id: Okasu writes: > I can't iterate over Nd array in Ada, becuse of >>expression for dimension must be static > So following code won't work: > > for X in A'Range loop > for Y in A'Range (X) loop > null; > end loop; > end loop; > > Geez, guys, what if i have to work with 1000d array? Can you show an example of what you want in another language? I've never heard of such a thing being possible. -- -- Stephe