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 autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.31.161.146 with SMTP id k140mr2911825vke.12.1475705504548; Wed, 05 Oct 2016 15:11:44 -0700 (PDT) X-Received: by 10.157.37.235 with SMTP id q98mr1353445ota.19.1475705504500; Wed, 05 Oct 2016 15:11:44 -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.glorb.com!g45no245621qte.1!news-out.google.com!w143ni1084itb.0!nntp.google.com!l13no365466itl.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 5 Oct 2016 15:11:44 -0700 (PDT) In-Reply-To: <7c7607d3-a40f-4a47-b22e-6bb41b94aa1f@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=149.32.224.37; posting-account=Qh2kiQoAAADpCLlhT_KTYoGO8dU3n4I6 NNTP-Posting-Host: 149.32.224.37 References: <44638b2d-c7fb-4113-9262-d57dd1cd5629@googlegroups.com> <241a25d0-e840-4d2f-b39f-e5bcdf9a6209@googlegroups.com> <23322f1c-76c2-4ab5-8098-421a3394bc04@googlegroups.com> <1410516a-584f-4fb1-94a2-57bb9ee80a57@googlegroups.com> <1010051e-eb15-454e-bbe1-5b210fb9f7dd@googlegroups.com> <7c7607d3-a40f-4a47-b22e-6bb41b94aa1f@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: Anh Vo Injection-Date: Wed, 05 Oct 2016 22:11:44 +0000 Content-Type: text/plain; charset=UTF-8 Xref: news.eternal-september.org comp.lang.ada:32007 Date: 2016-10-05T15:11:44-07:00 List-Id: On Wednesday, October 5, 2016 at 1:58:40 PM UTC-7, James Brewer wrote: > On Wednesday, October 5, 2016 at 3:18:01 PM UTC-5, Jeffrey R. Carter wrote: > > On 10/05/2016 12:53 PM, James Brewer wrote: > > > > > > Please remember I'm just starting in this language. So if I say anything > > > ridiculous it is not intentional. It doesn't seem to allow for declarations > > > after the "begin" statement. Also, it worked without the package > > > implementation as best as I could tell with my test data. > > > > Yes, after "begin" but before "exception" or "end" you can only have statements. > > But it would be a good idea to be familiar with the kinds of statements, which > > are given in ARM 5 > > > > http://www.ada-auth.org/standards/rm12_w_tc1/html/RM-5.html > > > > ARM 5.1 lists all the kinds of statements. Of particular interest might be the > > block statement, described in more detail in ARM 5.6. > > > > -- > > Jeff Carter > > "You can never forget too much about C++." > > 115 > > Implementing the block statement looks like it may have solved the problem. I will test it further. I make it work, also. Just like all mentioned, your array object does not match with array dimension in input.txt file. Since you have solved your problem, my solution is not necessary. Anh Vo