From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Limited_Controlled, orthogonality and related issues
Date: Thu, 18 Jan 2007 11:25:44 -0500
Date: 2007-01-18T11:25:44-05:00 [thread overview]
Message-ID: <wcc7ivk714n.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: 87zm8g4k9k.fsf@ludovic-brenta.org
Ludovic Brenta <ludovic@ludovic-brenta.org> writes:
> type T_Finalizer (Enclosing : access T) is
> new Ada.Finalization.Limited_Controlled with null record;
>
> procedure Finalize (Finalizer : in out T);
> but the program compiled with GNAT does not display the two
> finalization messages. Bug (i.e. the finalization procedures should
> be called as per ARM 7.6.1(9)) or feature (i.e. GNAT optimizes the
> calls away, noticing that the program is terminating anyway)?
Bug -- in your program. ;-)
You meant T_Finalizer instead of T in procedure Finalize. This is an
easy mistake to make. As somebody pointed out, in Ada 2005, you can use
the overriding keyword to prevent that problem.
- Bob
next prev parent reply other threads:[~2007-01-18 16:25 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-18 9:24 Limited_Controlled, orthogonality and related issues Maciej Sobczak
2007-01-18 12:00 ` Ludovic Brenta
2007-01-18 12:33 ` AW: " Grein, Christoph (Fa. ESG)
2007-01-18 16:25 ` Robert A Duff [this message]
2007-01-18 17:02 ` Adam Beneschan
2007-01-18 17:16 ` Adam Beneschan
2007-01-19 1:02 ` Robert A Duff
2007-01-19 7:38 ` Maciej Sobczak
2007-01-19 9:05 ` Dmitry A. Kazakov
2007-01-19 17:04 ` Adam Beneschan
2007-01-19 1:01 ` Robert A Duff
2007-01-19 9:57 ` Stephen Leake
2007-01-18 19:03 ` Jeffrey Carter
2007-01-19 7:48 ` Randy Brukardt
2007-01-19 16:46 ` Adam Beneschan
2007-01-19 15:29 ` Robert A Duff
2007-01-19 16:31 ` Dmitry A. Kazakov
2007-01-19 16:36 ` Robert A Duff
2007-01-19 18:26 ` Dmitry A. Kazakov
2007-01-19 20:17 ` Robert A Duff
2007-01-20 10:14 ` Dmitry A. Kazakov
2007-01-20 14:44 ` Robert A Duff
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox