From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,FREEMAIL_FROM, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a05:620a:b51:b0:6cf:68b2:d86e with SMTP id x17-20020a05620a0b5100b006cf68b2d86emr14305082qkg.176.1665433384606; Mon, 10 Oct 2022 13:23:04 -0700 (PDT) X-Received: by 2002:a37:a996:0:b0:6ec:59da:a72 with SMTP id s144-20020a37a996000000b006ec59da0a72mr5731620qke.676.1665433384464; Mon, 10 Oct 2022 13:23:04 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 10 Oct 2022 13:23:04 -0700 (PDT) In-Reply-To: <86a665htb0.fsf@stephe-leake.org> Injection-Info: google-groups.googlegroups.com; posting-host=94.31.101.23; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf NNTP-Posting-Host: 94.31.101.23 References: <86a665htb0.fsf@stephe-leake.org> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <36d635a5-7280-4ca8-8564-3cccde40bb9fn@googlegroups.com> Subject: Re: Freeing access-to-task objects From: AdaMagica Injection-Date: Mon, 10 Oct 2022 20:23:04 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 1683 Xref: reader01.eternal-september.org comp.lang.ada:64484 List-Id: Stephen Leake schrieb am Sonntag, 9. Oktober 2022 um 18:10:15 UTC+2: > But Ada frees all objects allocated using the locally declared access > type when the block is exited. Finalizing and Deallocation are often confused. If the scope of the access is left, all still existing objects allocated are finalized in some order. As others have said, storage is reclaimed only if Storage_Size is given. Finalization does not deallocate; but Deallocation does finalization.