comp.lang.ada
 help / color / mirror / Atom feed
From: bobduff@world.std.com (Robert A Duff)
Subject: Re: Free'ing extended types
Date: 1996/04/29
Date: 1996-04-29T00:00:00+00:00	[thread overview]
Message-ID: <Dqn9Dr.Kzy@world.std.com> (raw)
In-Reply-To: 4xrat6vlse.fsf@lagrange.enst-bretagne.fr


In article <4xrat6vlse.fsf@lagrange.enst-bretagne.fr>,
Laurent Guerby <Laurent.Guerby@enst-bretagne.fr> wrote:
>   If another Ada  compiler use different  pools for the  types in the
>example, as permitted by the  RM 13.11(17), then  the execution of the
>construct is erroneous. Then, of course, it can just work, don't work,
>crash your disk or nicely dies with Program_Error ;-).

Yes, but let's not get too alarmed, here.  If "type Acc1 is access all
T1'Class;" and "type Acc2 is access all T2'Class;", where T2 is a type
extension of T1 (both tagged, of course), then we know (from
accessibility rules) that these two are at the same nesting level, so I
can't imagine any *reason* for the implementation to choose two
different storage pools for Acc1 and Acc2.

In retrospect, I admit we should have *required* Acc1 and Acc2 to share
the same pool.  But if no compiler writers show up saying they don't,
why worry about it?  (And if they do, perhaps the ARG ought to make a
ruling on this point.)

- Bob




  reply	other threads:[~1996-04-29  0:00 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-04-28  0:00 Free'ing extended types Jonas Nygren
1996-04-28  0:00 ` Robert Dewar
1996-04-29  0:00   ` Laurent Guerby
1996-04-29  0:00     ` Robert A Duff
1996-04-29  0:00       ` Robert Dewar
1996-04-29  0:00   ` Laurent Guerby
1996-04-29  0:00     ` Robert A Duff [this message]
1996-04-29  0:00   ` Jonas Nygren
1996-04-29  0:00     ` Robert A Duff
1996-04-29  0:00       ` Robert Dewar
1996-04-29  0:00         ` Robert A Duff
1996-04-29  0:00       ` Jonas Nygren
1996-05-20  0:00       ` Type conversion between access types (was: Free'ing extended types) Scott Leschke
1996-05-21  0:00         ` Robert A Duff
1996-05-22  0:00           ` Scott Leschke
1996-05-23  0:00             ` Robert A Duff
1996-05-23  0:00               ` progers
1996-05-24  0:00               ` Scott Leschke
1996-05-24  0:00                 ` Robert A Duff
1996-05-21  0:00         ` Dale Stanbrough
1996-05-21  0:00           ` Robert A Duff
  -- strict thread matches above, loose matches on Subject: below --
1996-04-26  0:00 Free'ing extended types Jonas Nygren
1996-04-26  0:00 ` Laurent Guerby
1996-04-27  0:00   ` Jerry van Dijk
1996-04-28  0:00     ` Robert Dewar
1996-04-28  0:00   ` Jonas Nygren
replies disabled

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