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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: Pascal Obry Newsgroups: comp.lang.ada Subject: Re: Reference counting and idempotent finalize Date: Thu, 12 Sep 2013 17:40:15 +0200 Organization: Aioe.org NNTP Server Message-ID: <5231E05F.9000701@obry.net> References: <52307537.3050900@obry.net> NNTP-Posting-Host: EwCZXy744ACJ8GKhzjGw2w.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; fr-FR; rv:1.8.1.22) Gecko/20090605 Thunderbird/2.0.0.22 Mnenhy/0.7.5.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:17171 Date: 2013-09-12T17:40:15+02:00 List-Id: Natasha, > Maybe I should have mentioned it explicitly in the OP, but that's > exactly what triggered my posting here. > That and http://sourceforge.net/p/booch95/bugs/26/ too. > > And I still don't see any clue on why their code is more idempotent than > mine. > > Again, what am I missing here? Nothing I suppose, your code looks idempotent to me. Not coded exactly the same way, but in all case the Firnalize procedure exit with the pointer being set to null. That's the important point! Pascal. -- Pascal Obry / Magny Les Hameaux (78) The best way to travel is by means of imagination http://v2p.fr.eu.org http://www.obry.net gpg --keyserver keys.gnupg.net --recv-key F949BD3B