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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.unit0.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: Ada Annoyances Date: Tue, 4 Jul 2017 22:32:19 +0300 Organization: Tidorum Ltd Message-ID: References: <1ac5a44b-4423-443a-a7bb-2864d9abe78f@googlegroups.com> <4921bd4e-3827-a7ac-7f2d-d60edbc514a3@tidorum.invalid> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net oUm4yfm3A37Tyx7x0lftoQVkklhIsxLMQDuD2GyT5tt8qxI5MD Cancel-Lock: sha1:wa9ZA8BbGr9iRvwG/zf7YezmeIc= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 In-Reply-To: Xref: news.eternal-september.org comp.lang.ada:47287 Date: 2017-07-04T22:32:19+03:00 List-Id: On 17-06-30 00:29 , Robert A Duff wrote: > Niklas Holsti writes: > >> Isn't finalization of local objects usually implemented by creating a >> list of these objects, and then traversing that list on scope exit? > > No. That method was used originally by GNAT, but it was changed to > a simpler and much more efficient method. Ok, understood and good to know, thanks. >> ...It >> seems to me that changing the tag of an object on the list should not be >> a problem; the new tag would just lead to a different Finalize, through >> normal dispatching. > > I agree, I don't see a problem here. When Finalize is called, it > dispatches via the currrent Tag. Tags can't change in Ada, but if they > could it would still dispatch via the Tag value present when Finalize is > called. We agree on that, good. -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .