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 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: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Passing a 2d array into a package and returning the same processed 2d back to main Date: Wed, 5 Oct 2016 13:17:55 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 5 Oct 2016 20:17:46 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="6df4b173985f7c5c043cea362c370ff7"; logging-data="3866"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ZiOjc6vsbFuoksW08ke2jYYhpbGK+tDQ=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 In-Reply-To: <1010051e-eb15-454e-bbe1-5b210fb9f7dd@googlegroups.com> Cancel-Lock: sha1:a2xAWOyuwGsPA4JKPFkpwNUfurQ= Xref: news.eternal-september.org comp.lang.ada:32003 Date: 2016-10-05T13:17:55-07:00 List-Id: 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