From: Tucker Taft <stt@averstar.com>
Subject: Re: Which is right here - GNAT or OA ?
Date: 1999/06/01
Date: 1999-06-01T00:00:00+00:00 [thread overview]
Message-ID: <3754594D.F1E07B47@averstar.com> (raw)
In-Reply-To: m33e0el4vr.fsf@deneb.cygnus.stuttgart.netsurf.de
Florian Weimer wrote:
> ...
> Another but related thing surprises me---it's AARM 12.5.4(4.a):
>
> | If no _modifier applies to the formal, then the actual type may be
> | either a pool-specific or a general access-to-variable type.
>
> I can't imagine any reason why an access-to-variable type should be
> allowed as an actual parameter for a formal access type without an
> `all' modifier. If this was changed, an access-to-variable would not be
> allowed as a parameter in an instantiation of Ada.Unchecked_Deallocation,
> which seems quite reasonable to me. (I don't claim that the language
> definition inadequate here, I simply can't make sense out of it, which
> is very likely my own fault. ;)
You may be parsing the sentence incorrectly. It is saying that the
actual type may be a (pool-specific or general) access-to-variable
type. It certainly must be an access-to-variable type, unless
the "constant" modifier is present. By omitting the "all" modifier,
you are allowing either kind of access-to-variable type, pool-specific
or general. Within the generic unit, the formal type is considered
pool-specific. This works because the capabilities of a pool-specific
access type are a subset of the capabilities of a general access type.
This is analogous to the way "limited" is used in generic formal types.
If present, either a limited or a non-limited actual type is used.
If the word "limited" is absent, then only a non-limited actual
type may be used. In general, a formal type specifies the minimum
set of properties required. It is safe to provide an actual type
with more properties than what is presumed for the formal.
--
-Tucker Taft stt@averstar.com http://www.averstar.com/~stt/
Technical Director, Distributed IT Solutions (www.averstar.com/tools)
AverStar (formerly Intermetrics, Inc.) Burlington, MA USA
next prev parent reply other threads:[~1999-06-01 0:00 UTC|newest]
Thread overview: 57+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-05-30 0:00 Which is right here - GNAT or OA ? Vladimir Olensky
1999-05-30 0:00 ` Robert Dewar
1999-05-31 0:00 ` Vladimir Olensky
1999-05-31 0:00 ` Robert Dewar
1999-06-01 0:00 ` dennison
1999-05-30 0:00 ` Florian Weimer
1999-05-31 0:00 ` Vladimir Olensky
1999-05-31 0:00 ` Robert Dewar
1999-06-05 0:00 ` Vladimir Olensky
1999-06-05 0:00 ` Florian Weimer
1999-06-05 0:00 ` Vladimir Olensky
1999-06-05 0:00 ` Robert Dewar
1999-06-07 0:00 ` Ada safety road Was: Which is right Vladimir Olensky
1999-06-06 0:00 ` Larry Kilgallen
1999-06-07 0:00 ` Keith Thompson
1999-06-07 0:00 ` Hyman Rosen
1999-06-08 0:00 ` Robert A Duff
1999-06-08 0:00 ` Keith Thompson
1999-06-09 0:00 ` dennison
1999-06-09 0:00 ` Entamology of "Nasal Demons" dennison
1999-06-09 0:00 ` Ada safety road Was: Which is right Robert Dewar
1999-06-09 0:00 ` Tucker Taft
1999-06-09 0:00 ` Robert Dewar
1999-06-08 0:00 ` Robert Dewar
1999-06-09 0:00 ` dennison
1999-06-08 0:00 ` Robert Dewar
1999-06-07 0:00 ` Keith Thompson
1999-06-08 0:00 ` Robert A Duff
1999-06-08 0:00 ` Robert A Duff
1999-06-14 0:00 ` Ada safety road Franco Mazzanti
1999-06-15 0:00 ` Franco Mazzanti
1999-06-16 0:00 ` Vladimir Olensky
1999-06-06 0:00 ` Ada safety road Was: Which is right Robert Dewar
1999-06-07 0:00 ` Pascal F. Martin
1999-06-07 0:00 ` Vladimir Olensky
1999-06-08 0:00 ` Robert A Duff
1999-06-10 0:00 ` Peter Amey
1999-06-10 0:00 ` Markus Kuhn
1999-06-11 0:00 ` Vladimir Olensky
1999-06-12 0:00 ` Robert Dewar
1999-06-12 0:00 ` JP Thornley
1999-06-13 0:00 ` Vladimir Olensky
1999-06-16 0:00 ` William Dale
1999-06-19 0:00 ` JP Thornley
1999-06-21 0:00 ` Robert A Duff
1999-06-13 0:00 ` Vladimir Olensky
1999-06-12 0:00 ` Matthew Heaney
1999-06-13 0:00 ` Vladimir Olensky
1999-06-13 0:00 ` Robert Dewar
1999-06-13 0:00 ` swhalen
1999-06-13 0:00 ` Vladimir Olensky
1999-06-13 0:00 ` Robert Dewar
1999-06-13 0:00 ` Vladimir Olensky
1999-06-01 0:00 ` Tucker Taft [this message]
1999-05-31 0:00 ` Which is right here - GNAT or OA ? David Botton
1999-06-01 0:00 ` dennison
1999-06-03 0:00 ` Matthew Heaney
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox