comp.lang.ada
 help / color / mirror / Atom feed
From: James Brewer <firstvestor@gmail.com>
Subject: Re: Passing a 2d array into a package and returning the same processed 2d back to main
Date: Wed, 5 Oct 2016 09:16:12 -0700 (PDT)
Date: 2016-10-05T09:16:12-07:00	[thread overview]
Message-ID: <a93362da-b97d-476d-a262-288ab279e5c3@googlegroups.com> (raw)
In-Reply-To: <nt03r1$c1e$1@dont-email.me>

On Tuesday, October 4, 2016 at 6:29:51 AM UTC-5, Brian Drummond wrote:
> On Mon, 03 Oct 2016 14:59:01 -0700, James Brewer wrote:
> 
> > On Monday, October 3, 2016 at 2:44:01 PM UTC-5, björn lundin wrote:
> >> On 2016-10-03 20:36, James Brewer wrote:
> 
> > 
> > Thanks for the help. It's hard to know what a language can and cannot do
> > when your just starting out. Unfortunately, I'm still getting an error
> > saying [expected type"MY_ARRAY" defined at warshallspkg.ads:5
> > warshallmain.adb:60:20: found type Array2d declare at line 19]. It may
> > have something to do with what Jeffery was alluding too but I don't know
> > enough to say for sure.
> 
> The error message pretty much tells you : you have created a new 
> anonymous type of boolean array instead of the type you created earlier.
> 
> So, declare the actual parameter using that type:
> 
>    Array2d: WarshallsPkg.MY_ARRAY(1..N,   1..N);
> 
> -- Brian

I tried it and it seems to be working.
 
Thank you to everyone helped.

  reply	other threads:[~2016-10-05 16: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 [this message]
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
replies disabled

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