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,6b1a1ed8b075945 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!attbi_s21.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Allocators and exceptions References: <1189323618.588340.87180@o80g2000hse.googlegroups.com> <1189439048.467517.186160@19g2000hsx.googlegroups.com> In-Reply-To: <1189439048.467517.186160@19g2000hsx.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s21 1189462068 12.201.97.213 (Mon, 10 Sep 2007 22:07:48 GMT) NNTP-Posting-Date: Mon, 10 Sep 2007 22:07:48 GMT Organization: AT&T ASP.att.net Date: Mon, 10 Sep 2007 22:07:48 GMT Xref: g2news2.google.com comp.lang.ada:1870 Date: 2007-09-10T22:07:48+00:00 List-Id: Adam Beneschan wrote: > > In fact, I believe there is nowhere > in the language that says that memory is automatically reclaimed in > *any* situation; and, in fact, there is no guarantee that you can even > reclaim any storage at all. 13.11.2 defines Unchecked_Deallocation, > but this section has an "Implementation Advice" that says "For a > standard storage pool, Free [an instance of Unchecked_Deallocation] > should actually reclaim the storage." Note that that is only > *advice*. So an implementation can legitimately be an Ada compiler > without implementing Unchecked_Deallocation at all. It has to implement Unchecked_Deallocation, and the implementation has to set the parameter X to null. But that's all an implementation has to do, and that's all the Rolm/Data General compiler did in 1984. But every more recent compiler that I've used actually did deallocation. -- Jeff Carter "It's all right, Taggart. Just a man and a horse being hung out there." Blazing Saddles 34