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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,d46468aa410c0403 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!ndsoftware.com!ciril.fr!oleane.net!oleane!hunter.axlog.fr!nobody From: Jean-Pierre Rosen Newsgroups: comp.lang.ada Subject: Re: Distributed Ada, robustness etc. Date: Wed, 31 May 2006 17:38:53 +0200 Organization: Adalog Message-ID: References: <87odxeg2vz.fsf@ludovic-brenta.org> NNTP-Posting-Host: mailhost.axlog.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: s1.news.oleane.net 1149091300 17652 195.25.228.57 (31 May 2006 16:01:40 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Wed, 31 May 2006 16:01:40 +0000 (UTC) User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) In-Reply-To: Xref: g2news2.google.com comp.lang.ada:4628 Date: 2006-05-31T17:38:53+02:00 List-Id: Dr. Adrian Wrigley a �crit : > The package makes a "register" RCI call when it is being > elaborated. This works fine (it's what I expected). > Doesn't that mean that I should be able to "unregister" it > when finalizing? Normally, yes. If I understand correctly, your package declares a finalizable object just to support the Initialize and Finalize procedures. If that is correct, make sure that: 1) the registration is from the Initialize (to ensure symmetry) 2) your finalizable object is derived from Limited_Controlled, not from Controlled. This will prevent the compiler from doing nasty optimizations. -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr