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-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.9 required=3.0 tests=BAYES_00,XPRIO autolearn=no autolearn_force=no version=3.4.6 Path: eternal-september.org!reader02.eternal-september.org!gandalf.srv.welterde.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Custom Storage Pool questions Date: Mon, 20 Sep 2021 19:40:18 -0500 Organization: JSA Research & Innovation Message-ID: References: <1d2551f4-8189-44ec-a54d-4a56a672bedcn@googlegroups.com> Injection-Date: Tue, 21 Sep 2021 00:40:21 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="24194"; mail-complaints-to="news@jacob-sparre.dk" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: reader02.eternal-september.org comp.lang.ada:62798 List-Id: "Niklas Holsti" wrote in message news:iqqtskF3losU1@mid.individual.net... > On 2021-09-20 10:35, Dmitry A. Kazakov wrote: >> On 2021-09-20 09:05, Niklas Holsti wrote: > > > [snipping context] > > >>> However, your semantic argument (as opposed to the overhead argument) >>> seems to be based on an assumption that the objects "left over" in a >>> local collection, and which thus are inaccessible, will still, somehow, >>> participate in the later execution of the program, which is why you say >>> that finalizing those objects would "corrupt" them. >>> >>> It seems to me that such continued participation is possible only if the >>> objects contain tasks or are accessed through some kind of unchecked >>> programming. Do you agree? >> >> No. You can have them accessible over other access types with wider >> scopes: >> >> Collection_Pointer := new X; >> Global_Pointer := Collection_Pointer.all'Unchecked_Access; >> > > > So, unchecked programming, as I said. Yup, and when you do stuff like that, you deserve for the compiler to shoot you in the head. Randy.