comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Passing a 2d array into a package and returning the same processed 2d back to main
Date: Mon, 3 Oct 2016 13:16:59 -0700
Date: 2016-10-03T13:16:59-07:00	[thread overview]
Message-ID: <nsuebe$3fe$1@dont-email.me> (raw)
In-Reply-To: <241a25d0-e840-4d2f-b39f-e5bcdf9a6209@googlegroups.com>

On 10/03/2016 11:36 AM, James Brewer wrote:
>
>    TYPE MY_ARRAY IS ARRAY(INTEGER RANGE <>, INTEGER RANGE <>) OF Boolean;
>
>    Array2d: ARRAY (1..N, 1..N) OF Boolean;

Your code has lots of problems, but an obvious reason why it doesn't work is 
that your procedure takes parameters of type My_Array, but the object you pass 
in twice has the anonymous array type of its declaration. These are 2 different 
types, and you can't use one where the other is required.

-- 
Jeff Carter
"We'll make Rock Ridge think it's a chicken
that got caught in a tractor's nuts!"
Blazing Saddles
87

      parent reply	other threads:[~2016-10-03 20:16 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-30 22:27 Passing a 2d array into a package and returning the same processed 2d back to main diane74
2016-10-01  0:01 ` Jeffrey R. Carter
2016-10-01 20:01 ` Aurele
2016-10-01 21:04   ` Jeffrey R. Carter
2016-10-01 21:59     ` Aurele
2016-10-01 22:16       ` Jeffrey R. Carter
2016-10-02  0:09         ` Aurele
2016-10-02  7:31           ` Simon Wright
2016-10-03 18:36 ` James Brewer
2016-10-03 19:43   ` Björn Lundin
2016-10-03 21:59     ` James Brewer
2016-10-03 23:16       ` Anh Vo
2016-10-04 11:29       ` Brian Drummond
2016-10-05 16:16         ` James Brewer
2016-10-05 17:19           ` James Brewer
2016-10-05 18:57             ` Jeffrey R. Carter
2016-10-05 19:53               ` James Brewer
2016-10-05 19:57                 ` AdaMagica
2016-10-05 20:17                 ` Jeffrey R. Carter
2016-10-05 20:58                   ` James Brewer
2016-10-05 22:11                     ` Anh Vo
2016-10-05 19:47             ` Anh Vo
2016-10-05 20:30               ` James Brewer
2016-10-03 20:16   ` Jeffrey R. Carter [this message]
replies disabled

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