comp.lang.ada
 help / color / mirror / Atom feed
From: "John R. Strohm" <strohm@airmail.net>
Subject: Re: Arrays
Date: Thu, 29 May 2003 07:00:27 -0500
Date: 2003-05-29T07:00:27-05:00	[thread overview]
Message-ID: <bb57dc$eum@library2.airnews.net> (raw)
In-Reply-To: e723f896.0305290208.ceb6d95@posting.google.com

"Drey" <DreySf@gmx.net> 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.





  reply	other threads:[~2003-05-29 12:00 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 ` John R. Strohm [this message]
2003-05-29 12:22 ` Arrays David C. Hoos, Sr.
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