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!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: body stub not allowed in inner scope Date: Wed, 28 Feb 2018 18:24:29 +0100 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 28 Feb 2018 17:24:29 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="04eb0e1b8bdddca5d831f7c3c4933fdb"; logging-data="29363"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18F5zyY2C6PtJnxZ8OMQN2mAgo2EBM86Gg=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 In-Reply-To: Content-Language: en-US Cancel-Lock: sha1:uft8uRri0QCzAXnw1friqtE3BIA= Xref: reader02.eternal-september.org comp.lang.ada:50716 Date: 2018-02-28T18:24:29+01:00 List-Id: On 02/28/2018 02:01 PM, Mehdi Saada wrote: > I find that rule very limitating ! > I need the procedures to know the context (access local variable). > Same with nested packages: > I need them to access local variable too, and be able to exit an enclosing loop. Though I'm not sure it's allowed either. > Without stuff like this, my working memory is already overflowed with a hundred lines. How do you write the separate body? Remember, you have to be able to handle package body P is procedure Q is procedure R is separate; begin -- Q R; end Q; procedure Q (I : Integer) is procedure R is separate; begin -- Q R; end q; end P; -- Jeff Carter "From this day on, the official language of San Marcos will be Swedish." Bananas 28