From: "Grein, Christoph (Fa. ESG)" <Christoph.Grein@eurocopter.com>
To: comp.lang.ada@ada-france.org
Subject: AW: Limited_Controlled, orthogonality and related issues
Date: Thu, 18 Jan 2007 13:33:17 +0100
Date: 2007-01-18T13:55:01+01:00 [thread overview]
Message-ID: <mailman.29.1169124656.18371.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: <87zm8g4k9k.fsf@ludovic-brenta.org>
private with Ada.Finalization; --*
package P is
type T is limited private;
type S is limited private;
procedure Do_The_Job(X : in T; Y : in S);
private
type T_Finalizer (Enclosing : access T) is
new Ada.Finalization.Limited_Controlled with null record;
overriding --*
procedure Finalize (Finalizer : in out T_Finalizer); --*
type S_Finalizer (Enclosing : access S) is
new Ada.Finalization.Limited_Controlled with null record;
overriding --*
procedure Finalize (Finalizer : in out S_Finalizer); --*
type T is record
-- other components
Finalizer : T_Finalizer (T'Access);
end record;
type S is record
-- other components
Finalizer : S_Finalizer (S'Access);
end record;
end P;
Had you used the new overriding keyword, you has seen the mistake.
Changes marked by --*. With this, the finalizers are called.
next prev parent reply other threads:[~2007-01-18 12:33 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 ` Grein, Christoph (Fa. ESG) [this message]
2007-01-18 16:25 ` Robert A Duff
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