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=2.9 required=3.0 tests=AC_FROM_MANY_DOTS,BAYES_40, FREEMAIL_FROM,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Received: by 2002:a05:6214:b33:b0:5ef:63e8:e64e with SMTP id w19-20020a0562140b3300b005ef63e8e64emr2150094qvj.7.1681888187531; Wed, 19 Apr 2023 00:09:47 -0700 (PDT) X-Received: by 2002:a25:cbd5:0:b0:b95:630:197b with SMTP id b204-20020a25cbd5000000b00b950630197bmr3064575ybg.10.1681888187292; Wed, 19 Apr 2023 00:09:47 -0700 (PDT) Path: eternal-september.org!news.eternal-september.org!news.uzoreto.com!peer02.ams4!peer.am4.highwinds-media.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 00:09:46 -0700 (PDT) Injection-Info: google-groups.googlegroups.com; posting-host=87.143.122.5; posting-account=3zVVBwoAAAC7BSMfgNP7DSbqU9urpt40 NNTP-Posting-Host: 87.143.122.5 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: strange cursor in nested containers From: Mario Blunk Injection-Date: Wed, 19 Apr 2023 07:09:47 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 1894 Xref: news.eternal-september.org comp.lang.ada:65112 List-Id: Hello out there, I've put together a demo to reproduce a strange behavior of a cursor. https://github.com/Blunk-electronic/ada_training/blob/master/src/containers/demo/nested/nest_1.adb Description: Inside the procedure "get_line" the cursor "result" is assigned only once (on match). Since there is no further match, in the course of the procedure, I assume that "result" is never changed. So the expected output should be: net: A L1 S: 2.00000E+00 E: 3.00000E+00 L2 S: 2.00000E+00 E: 3.00000E+00 net: B L2 S: 2.00000E+00 E: 3.00000E+00 L3 S: 2.00000E+00 E: 3.00000E+00 but the actual output is: net: A L1 S: 2.00000E+00 E: 3.00000E+00 L2 S: 2.00000E+00 E: 3.00000E+00 net: B L2 S: 1.20000E+01 E: 1.30000E+01 L3 S: 7.47956E-39 E: 0.00000E+00 -- changes randomly Thanks for your help.