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,97a4ff0c3103bbb6 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!news1.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!t-online.de!130.59.10.21.MISMATCH!kanaga.switch.ch!news-zh.switch.ch!switch.ch!cernne03.cern.ch!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: Deallocating list of polymorphic objects? Date: Fri, 01 Dec 2006 14:05:17 +0100 Organization: CERN News Message-ID: References: <1164930027.758923.119740@h54g2000cwb.googlegroups.com> <-6GdnbcBS6eIGfLYnZ2dnUVZ_vednZ2d@megapath.net> NNTP-Posting-Host: abpc10883.cern.ch Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: cernne03.cern.ch 1164978317 8544 137.138.37.241 (1 Dec 2006 13:05:17 GMT) X-Complaints-To: news@@cern.ch NNTP-Posting-Date: Fri, 1 Dec 2006 13:05:17 +0000 (UTC) User-Agent: Thunderbird 1.5.0.8 (X11/20061113) In-Reply-To: Xref: g2news2.google.com comp.lang.ada:7774 Date: 2006-12-01T14:05:17+01:00 List-Id: Matthew Heaney wrote: > Maciej Sobczak writes: > >> Can it be called more than once? > > Yes. When you write Finalize you must write it in such as way as to ensure > that it can be safely called a second time. Could you please throw some paragraph numbers from AARM that are relevant to this? I would like to take a closer look at this subject. The assertion that Finalize has to be safe w.r.t. multiple calls is a very important one and I don't seem to remember it being mentioned anywhere (including The book). -- Maciej Sobczak : http://www.msobczak.com/ Programming : http://www.msobczak.com/prog/