From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f93e461e8491e322 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!proxad.net!cleanfeed2-a.proxad.net!nnrp11-1.free.fr!not-for-mail Return-Path: Date: Thu, 18 Jan 2007 13:33:17 +0100 From: "Grein, Christoph (Fa. ESG)" Subject: AW: Limited_Controlled, orthogonality and related issues In-reply-to: <87zm8g4k9k.fsf@ludovic-brenta.org> To: comp.lang.ada@ada-france.org MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft Exchange V6.5 Content-Type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-class: urn:content-classes:message Thread-topic: Limited_Controlled, orthogonality and related issues Thread-index: Acc6+eIbkRwTJ6SORIKnuo6n5EzGTgAAnfLg X-MS-Has-Attach: X-MS-TNEF-Correlator: X-OriginalArrivalTime: 18 Jan 2007 12:50:27.0959 (UTC) FILETIME=[3AB88070:01C73AFF] X-Virus-Scanned: amavisd-new at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.9rc1 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.ada Message-ID: X-Leafnode-NNTP-Posting-Host: 88.191.17.134 Organization: Guest of ProXad - France NNTP-Posting-Date: 18 Jan 2007 13:55:01 MET NNTP-Posting-Host: 88.191.14.223 X-Trace: 1169124901 news-3.free.fr 291 88.191.14.223:38712 X-Complaints-To: abuse@proxad.net Xref: g2news2.google.com comp.lang.ada:8257 Date: 2007-01-18T13:55:01+01:00 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.