From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: begin clause in package bodies
Date: Fri, 1 Dec 2017 16:23:45 -0600
Date: 2017-12-01T16:23:45-06:00 [thread overview]
Message-ID: <ovskph$a63$1@franka.jacob-sparre.dk> (raw)
In-Reply-To: ovrtsh$bia$1@gioia.aioe.org
"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> wrote in message
news:ovrtsh$bia$1@gioia.aioe.org...
...
> Furthermore the term "global" does not quite apply to Ada.
<pedantic>Well, actually it does: "global" is defined by RM 8.1(15).
:-)</pedantic>
>... 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.
next prev parent reply other threads:[~2017-12-01 22:23 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-30 23:28 begin clause in package bodies Mehdi Saada
2017-12-01 0:09 ` Anh Vo
2017-12-01 10:54 ` Jeffrey R. Carter
2017-12-01 13:05 ` Mehdi Saada
2017-12-01 13:20 ` Dmitry A. Kazakov
2017-12-01 14:59 ` Simon Wright
2017-12-01 15:15 ` Mehdi Saada
2017-12-01 15:52 ` Dmitry A. Kazakov
2017-12-01 22:23 ` Randy Brukardt [this message]
2017-12-01 22:26 ` Randy Brukardt
2017-12-01 16:29 ` Jeffrey R. Carter
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox