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,WEIRD_PORT autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: Passing a 2d array into a package and returning the same processed 2d back to main Date: Tue, 4 Oct 2016 11:29:37 -0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <44638b2d-c7fb-4113-9262-d57dd1cd5629@googlegroups.com> <241a25d0-e840-4d2f-b39f-e5bcdf9a6209@googlegroups.com> <23322f1c-76c2-4ab5-8098-421a3394bc04@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 4 Oct 2016 11:29:37 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="da745e888d4a5182b5fda6212bbb0a63"; logging-data="12334"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18DLk1MetzYGTdsLf5QMlHXXa22bdFOfWQ=" User-Agent: Pan/0.140 (Chocolate Salty Balls; GIT b8fc14e git.gnome.org/git/pan2) Cancel-Lock: sha1:9gFcqCIqtNznaTj2pQ2kbJl5Exk= Xref: news.eternal-september.org comp.lang.ada:31987 Date: 2016-10-04T11:29:37+00:00 List-Id: 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