comp.lang.ada
 help / color / mirror / Atom feed
From: "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com>
To: <comp.lang.ada@ada.eu.org>
Cc: Drey <DreySf@gmx.net>
Subject: Re: Arrays
Date: Thu, 29 May 2003 12:22:12 -0000
Date: 2003-05-29T12:22:12+00:00	[thread overview]
Message-ID: <mailman.16.1054210964.386.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: e723f896.0305290208.ceb6d95@posting.google.com


----- Original Message ----- 
From: "Drey" <DreySf@gmx.net>
Newsgroups: comp.lang.ada
To: <comp.lang.ada@ada.eu.org>
Sent: Thursday, May 29, 2003 10:08 AM
Subject: Arrays


> hi !
> 
> problem: i need the last place of a 2 dimensional array

You didn't specifiy of which dimension you need the last place;
there is no "last place of a 2 dimensional array."

This is defined in RM 3.6.2
The last element of the Nth dimension of A is A'Last (N). 
> 
> well how can i do it ?
> 
> A : array (1..2,3..4);
> ...
> A'last = 2 ?
A'Last for a multidemnsional array is the same as A'Last (1).

> and how do i get 2nd dimension ?
In your above example array A'Last (2) = 4

> 
> Thanks :)
> _______________________________________________
> comp.lang.ada mailing list
> comp.lang.ada@ada.eu.org
> http://ada.eu.org/mailman/listinfo/comp.lang.ada
> 
> 




  parent reply	other threads:[~2003-05-29 12:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-29 10:08 Arrays Drey
2003-05-29 12:00 ` Arrays John R. Strohm
2003-05-29 12:22 ` David C. Hoos, Sr. [this message]
2003-05-29 20:36   ` Arrays Drey
  -- strict thread matches above, loose matches on Subject: below --
2002-05-13  0:30 arrays Beard, Frank [Contractor]
2002-05-13 10:45 ` arrays chris.danx
2002-05-12 23:34 arrays devine
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox