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=1.5 required=3.0 tests=BAYES_50,FREEMAIL_FROM, FROM_STARTS_WITH_NUMS autolearn=no autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:a0c:eb0f:: with SMTP id j15mr1544086qvp.58.1613848095516; Sat, 20 Feb 2021 11:08:15 -0800 (PST) X-Received: by 2002:a25:6e57:: with SMTP id j84mr23721176ybc.277.1613848095275; Sat, 20 Feb 2021 11:08:15 -0800 (PST) Path: eternal-september.org!reader02.eternal-september.org!news.mixmin.net!proxad.net!feeder1-2.proxad.net!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: Sat, 20 Feb 2021 11:08:15 -0800 (PST) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=85.240.208.106; posting-account=rhqvKAoAAABpikMmPHJSZh4400BboHwT NNTP-Posting-Host: 85.240.208.106 References: <4d2daa8c-c159-48a4-bdf7-e9aa3b537bcan@googlegroups.com> <4d0aa284-8042-4260-ac58-6d3ac9a82b00n@googlegroups.com> <1cd1f911-ab74-464a-8eff-b6f3d79bfe8an@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: set_index and and end_of_file with just a stream reference From: Mehdi Saada <00120260a@gmail.com> Injection-Date: Sat, 20 Feb 2021 19:08:15 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:61398 List-Id: Okay :-) what I wanted is: I read an acronyme in the stream file, if good I input the adjacent record = type, otherwise I would advance on the stream until the next acronyme with = set_index(stream_access, index(stream_access) + composite_type_stream_size)= and read the next acronyme (unbounded_string). Now I just input both objects and verify the acronyme. But I don't like writing an object that maybe won't be used.