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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,cb73ffe253a5caf1 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!cycny01.gnilink.net!cyclone1.gnilink.net!spamkiller2.gnilink.net!gnilink.net!trndny02.POSTED!0f19ed38!not-for-mail From: "Frank J. Lhota" Reply-To: NOSPAM.lhota@adarose.com User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Memory management clarification References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <11vFe.19868$iR2.16009@trndny02> Date: Tue, 26 Jul 2005 18:11:09 GMT NNTP-Posting-Host: 151.203.10.10 X-Complaints-To: abuse@verizon.net X-Trace: trndny02 1122401469 151.203.10.10 (Tue, 26 Jul 2005 14:11:09 EDT) NNTP-Posting-Date: Tue, 26 Jul 2005 14:11:09 EDT Xref: g2news1.google.com comp.lang.ada:3793 Date: 2005-07-26T18:11:09+00:00 List-Id: Robert A Duff wrote: > "Frank J. Lhota" writes: > That's not quite true, either. Most implementations use a global heap > by default, and never automatically reclaim memory. If you use a > Storage_Size clause on a local access type, then what you say is true. > But local access types are not very useful. You're right, I left out the Storage_Size condition. Although local access types are very rare, I have seen code where a local access type is used to create a temporary structure that is used for the subprogram call, then conveniently goes away when the subprogram completes. So I wouldn't say that local access types are not very useful, just not very common.