comp.lang.ada
 help / color / mirror / Atom feed
From: "jimmaureenrogers@worldnet.att.net" <jimmaureenrogers@worldnet.att.net>
Subject: Re: Heap Memory Management Question(s)
Date: 5 Apr 2006 09:50:50 -0700
Date: 2006-04-05T09:50:50-07:00	[thread overview]
Message-ID: <1144255845.663485.207140@t31g2000cwb.googlegroups.com> (raw)
In-Reply-To: 4433A136.6080503@gmx.de

Florian Liekweg wrote:
> Sorry for being unclear.  I was thinking of, e.g., a package variable,
> which, as I understand, is not visible and/or accessible everywhere,
> but it exists and keeps its state over the lifetime of the program.
>
> My assumption is the following:
>    We can momentarily leave the area where the variable is /visible/,
>    but it stays in existence.  The lifetime of the object it points to
>    can now span the entire program, not just the time the variable is
>    visible.
> My conclusion is: Visibility of the access type doesn't help when it
>    comes to determining the lifetime of that object.  NB, it could
>    of course /improve/ whatever analysis a sophisticated compiler
>    might do.

You might want to read the "Ada Distilled" article by Richard Riehle.
It is available several places online.

Ada Distilled has a good discussion of how Ada makes a distinction
between scope and visibility. Richard argues that understanding this
distinction is critical to understanding Ada.

Another point to understand about Ada is that the language
design reduces the need to use access types compared to Java,
C++, or C#.

Jim Rogers




  reply	other threads:[~2006-04-05 16:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-04  9:57 Heap Memory Management Question(s) Florian Liekweg
2006-04-04 15:06 ` Robert A Duff
2006-04-05 10:51   ` Florian Liekweg
2006-04-05 16:50     ` jimmaureenrogers [this message]
2006-04-05 21:42     ` Robert A Duff
2006-04-06  0:17     ` Adam Beneschan
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox