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-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103376,56131a5c3acc678e
X-Google-Attributes: gid103376,public
X-Google-ArrivalTime: 2003-12-03 14:04:09 PST
Path:
archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!skynet.be!freenix!wanadoo.fr!not-for-mail
From: Pascal Obry
Newsgroups: comp.lang.ada
Subject: Re: Question about OO programming in Ada
Date: 03 Dec 2003 23:04:08 +0100
Organization: Home - http://perso.wanadoo.fr/pascal.obry
Message-ID:
References:
<8urxb.19482$sb4.18182@newsread2.news.pas.earthlink.net>
<1792884.HtYz4Yv8lY@linux1.krischik.com>
<1070466281.168920@master.nyc.kbcfp.com>
NNTP-Posting-Host: avelizy-103-1-5-2.w80-13.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news-reader3.wanadoo.fr 1070489048 10519 80.13.115.2 (3 Dec 2003
22:04:08 GMT)
X-Complaints-To: abuse@wanadoo.fr
NNTP-Posting-Date: 3 Dec 2003 22:04:08 GMT
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.95
Xref: archiver1.google.com comp.lang.ada:3121
Date: 2003-12-03T22:04:08+00:00
List-Id:
Hyman Rosen writes:
> Dmitry A. Kazakov wrote:
> > Of course one could call Unchecked_Deallocation from Finalize
>
> I understand that Ada permits Finalize to be called multiple times
> for an object, so calling Unchecked_Deallocation from Finalize sounds
> like a recipe for disaster.
Certainly not! Unchecked_Deallocation will set the pointer to null and
Unchecked_Deallocation on a null pointer does nothing.
Pascal.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://perso.wanadoo.fr/pascal.obry
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595