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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e0f6162f2e6cbfc6 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-29 08:03:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.airnews.net!cabal12.airnews.net!usenet From: "John R. Strohm" Newsgroups: comp.lang.ada Subject: Re: Arrays Date: Thu, 29 May 2003 07:00:27 -0500 Organization: Airnews.net! at Internet America Message-ID: References: Abuse-Reports-To: abuse at airmail.net to report improper postings NNTP-Proxy-Relay: library2.airnews.net NNTP-Posting-Time: Thu, 29 May 2003 10:02:04 -0500 (CDT) NNTP-Posting-Host: !^"sY1k-W9\(1Q6 (Encoded at Airnews!) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Xref: archiver1.google.com comp.lang.ada:37995 Date: 2003-05-29T07:00:27-05:00 List-Id: "Drey" wrote in message news:e723f896.0305290208.ceb6d95@posting.google.com... > hi ! > > problem: i need the last place of a 2 dimensional array > > well how can i do it ? > > A : array (1..2,3..4); > ... > A'last = 2 ? > and how do i get 2nd dimension ? > > Thanks :) Define "last place". As I read what you typed, you want a 2x2 array subscripted as follows: A(1,3) A(1,4) A(2,3) A(2,4) I.e., two rows, numbered 1 and 2, and two columns, numbered 3 and 4. Which of these elements is intended to be the "last" element? And why do you care about the "last" element? I'm guessing that you are trying to do some kind of ugly hackery to pass your Ada matrix to some perverted C code, and you haven't read the stuff about foreign language interfaces yet.