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!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!newsfeed.xs3.de!io.xs3.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: begin clause in package bodies Date: Fri, 1 Dec 2017 16:23:45 -0600 Organization: JSA Research & Innovation Message-ID: References: <4c77317b-6d12-474f-928d-c713501f647a@googlegroups.com> <7732b88c-5911-4857-a9c8-e5a719043b26@googlegroups.com> <8c6a8a64-0ae5-4fcc-8756-3aab7c3ed508@googlegroups.com> Injection-Date: Fri, 1 Dec 2017 22:23:45 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="10435"; mail-complaints-to="news@jacob-sparre.dk" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: reader02.eternal-september.org comp.lang.ada:49314 Date: 2017-12-01T16:23:45-06:00 List-Id: "Dmitry A. Kazakov" wrote in message news:ovrtsh$bia$1@gioia.aioe.org... ... > Furthermore the term "global" does not quite apply to Ada. Well, actually it does: "global" is defined by RM 8.1(15). :-) >... Ada has nested scopes and a variable may exist in any scope starting >from the local one up to the library level. This also applies to task >objects. ...but your point is right. Ada defines "global" relative to the "current" declarative region, a rather useless definition. I prefer to think of "global" as equivalent to library-level, since that is always global to anything being executed. But I think you're right that it is better to think of nesting always and avoid thinking about "global" and "local" as if those are the only possibilities. Randy.