From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.0 required=3.0 tests=BAYES_20,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:a37:a104:: with SMTP id k4mr37190508qke.384.1596116248770; Thu, 30 Jul 2020 06:37:28 -0700 (PDT) X-Received: by 2002:a37:a906:: with SMTP id s6mr37372678qke.320.1596116248406; Thu, 30 Jul 2020 06:37:28 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.uzoreto.com!feeder1.cambriumusenet.nl!feed.tweak.nl!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 30 Jul 2020 06:37:28 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=20.133.40.13; posting-account=YRfoYAoAAADhSEO2nLYx10QUUvp8akYl NNTP-Posting-Host: 20.133.40.13 References: <94a54092-a56f-4a99-aaec-08dd611c8fd8@googlegroups.com> <8a502b6c-4609-4cd8-b292-5797fe6421e1n@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Proposal: Auto-allocation of Indefinite Objects From: Stephen Davies Injection-Date: Thu, 30 Jul 2020 13:37:28 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:59600 List-Id: On Wednesday, 29 July 2020 at 17:20:24 UTC+1, Dmitry A. Kazakov wrote: > If you make a shallow copy of > type Node_Type is record > Item : new Element_Type; > Prev : Node_Ptr_Type; > Next : Node_Ptr_Type; > end record; > you create a dangling pointer should the original node disappear. A deep > copy would create a new target for new Item. I see my proposal is being debated again. And Dmitry is arguing my case far better that I could, so I'll probably stay quiet. (though maybe I should try to plant the idea of "Trim_Image" and "Trim_Width" into Dmitry's head ;-))