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: border1.nntp.dca1.giganews.com!nntp.giganews.com!enother.net!enother.net!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!fx22.iad.POSTED!not-for-mail From: Hubert User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Stupid Question but it bothers me References: <6Tgvw.1229422$Rp.389422@fx23.iad> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 150119-1, 01/19/2015), Outbound message X-Antivirus-Status: Clean Message-ID: X-Complaints-To: abuse@newsdemon.com NNTP-Posting-Date: Tue, 20 Jan 2015 04:29:43 UTC Organization: http://www.NewsDemon.com Date: Mon, 19 Jan 2015 20:29:44 -0800 X-Received-Bytes: 1669 X-Received-Body-CRC: 3513152118 Xref: number.nntp.giganews.com comp.lang.ada:191926 Date: 2015-01-19T20:29:44-08:00 List-Id: On 1/19/2015 19:00 PM, David Botton wrote: > >> What happens when I deallocate the record with an instantiation of >> Ada.Unchecked_Deallocate? is the map correctly destroyed or do I have to >> revive my record from Ada.Finalization? > > In the process of deallocating your record My_Map will be finalized first. > > David Botton > Thanks, that helps understand the process. Curiously, most Ada books seem to treat Unchecked_Deallocation like a stepchild. I have read advices (in older books perhaps) that one should not bother with it since all memory will be freed at program end anyway, which clearly seems to be from a different time period. --- This email has been checked for viruses by Avast antivirus software. http://www.avast.com