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,FREEMAIL_FROM, WEIRD_PORT autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.200.37.138 with SMTP id e10mr20616qte.76.1475684173308; Wed, 05 Oct 2016 09:16:13 -0700 (PDT) X-Received: by 10.157.8.10 with SMTP id 10mr1086973oty.16.1475684173272; Wed, 05 Oct 2016 09:16:13 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.fcku.it!peer04.fr7!futter-mich.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!f6no171156qtd.0!news-out.google.com!203ni791itk.0!nntp.google.com!l13no254428itl.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 5 Oct 2016 09:16:12 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2601:2c4:101:d816:d1dc:87b4:993b:ab39; posting-account=bfqYCQoAAADhOBV9jx08D2gm5EA72sgj NNTP-Posting-Host: 2601:2c4:101:d816:d1dc:87b4:993b:ab39 References: <44638b2d-c7fb-4113-9262-d57dd1cd5629@googlegroups.com> <241a25d0-e840-4d2f-b39f-e5bcdf9a6209@googlegroups.com> <23322f1c-76c2-4ab5-8098-421a3394bc04@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Passing a 2d array into a package and returning the same processed 2d back to main From: James Brewer Injection-Date: Wed, 05 Oct 2016 16:16:13 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Received-Body-CRC: 2018731063 X-Received-Bytes: 2645 Xref: news.eternal-september.org comp.lang.ada:31997 Date: 2016-10-05T09:16:12-07:00 List-Id: 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: >=20 > > On Monday, October 3, 2016 at 2:44:01 PM UTC-5, bj=C3=B6rn lundin wrote= : > >> On 2016-10-03 20:36, James Brewer wrote: >=20 > >=20 > > Thanks for the help. It's hard to know what a language can and cannot d= o > > 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 kno= w > > enough to say for sure. >=20 > The error message pretty much tells you : you have created a new=20 > anonymous type of boolean array instead of the type you created earlier. >=20 > So, declare the actual parameter using that type: >=20 > Array2d: WarshallsPkg.MY_ARRAY(1..N, 1..N); >=20 > -- Brian I tried it and it seems to be working. =20 Thank you to everyone helped.