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,c08a7609345f4e5 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!209.197.12.242.MISMATCH!nx01.iad01.newshosting.com!newshosting.com!198.186.194.250.MISMATCH!news-xxxfer.readnews.com!news-out.readnews.com!transit4.readnews.com!panix!bloom-beacon.mit.edu!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Limited use for limited with? Date: Tue, 28 Sep 2010 11:54:34 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <853314bc-0f79-435f-86a5-d7bcdd610731@c10g2000yqh.googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1285689262 5438 192.74.137.71 (28 Sep 2010 15:54:22 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Tue, 28 Sep 2010 15:54:22 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:PtDf8pZOEE0gEV5Ua2sHjR3BISQ= Xref: g2news1.google.com comp.lang.ada:14295 Date: 2010-09-28T11:54:34-04:00 List-Id: Ludovic Brenta writes: > Taking this approach further, I can declare the access type in a > nested scope. When the access type goes out of scope, all objects > allocated through it are deallocated. This is a form of automatic > garbage collection. Those objects are finalized, but they are not deallocated in most implementations, unless you use Storage_Pool or Storage_Size. I think that's a good thing. - Bob