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=-0.0 required=3.0 tests=BAYES_20,FREEMAIL_FROM, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a05:620a:12d3:b0:74c:ed4d:7916 with SMTP id e19-20020a05620a12d300b0074ced4d7916mr55793qkl.12.1681968825212; Wed, 19 Apr 2023 22:33:45 -0700 (PDT) X-Received: by 2002:a25:cf8e:0:b0:b8f:6a10:7654 with SMTP id f136-20020a25cf8e000000b00b8f6a107654mr217604ybg.5.1681968824949; Wed, 19 Apr 2023 22:33:44 -0700 (PDT) Path: eternal-september.org!news.eternal-september.org!usenet.blueworldhosting.com!diablo1.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: Wed, 19 Apr 2023 22:33:44 -0700 (PDT) In-Reply-To: <6aa39f27-62ca-4486-9fc7-1c713da5b098n@googlegroups.com> Injection-Info: google-groups.googlegroups.com; posting-host=81.167.0.45; posting-account=uulyKwoAAAA86DO0ODu--rZtbje8Sytn NNTP-Posting-Host: 81.167.0.45 References: <6aa39f27-62ca-4486-9fc7-1c713da5b098n@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: strange cursor in nested containers From: Egil H H Injection-Date: Thu, 20 Apr 2023 05:33:45 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 1893 Xref: news.eternal-september.org comp.lang.ada:65118 List-Id: On Thursday, April 20, 2023 at 7:15:36=E2=80=AFAM UTC+2, Egil H H wrote: > On Wednesday, April 19, 2023 at 9:09:48=E2=80=AFAM UTC+2, Mario Blunk wro= te:=20 >=20 > Using a reference instead should fix this problem:=20 > net : type_net renames nets.reference (key(n));=20 >=20 > or (Ada 2012):=20 > net : type_net renames nets(n);=20 >=20 oops, both my solutions are Ada 2012 :) If Ada 2005 is a requirement (based on your explicit usage of `iterate`), I= guess you would need an extra set of callbacks and call `update_element` i= n order to get a reference to the element containing the correct instance o= f the doubly linked list --=20 ~egilhh