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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.50.27.132 with SMTP id t4mr2091815igg.0.1461323684692; Fri, 22 Apr 2016 04:14:44 -0700 (PDT) X-Received: by 10.182.102.73 with SMTP id fm9mr233839obb.9.1461323684625; Fri, 22 Apr 2016 04:14:44 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!sq19no107333igc.0!news-out.google.com!uv8ni115igb.0!nntp.google.com!g8no5380565igr.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 22 Apr 2016 04:14:44 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=158.110.28.161; posting-account=9fwclgkAAAD6oQ5usUYhee1l39geVY99 NNTP-Posting-Host: 158.110.28.161 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Why this program does not compile? (iterators) From: mockturtle Injection-Date: Fri, 22 Apr 2016 11:14:44 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:30241 Date: 2016-04-22T04:14:44-07:00 List-Id: Although this thread is almost one year old, I would like to add my 2-cent experience (I just tripped on this bug), for the sake of historical record. It actually seems that it is the "for" construction. I tried to use the iterator "by hand" (calling First at the beginning and then running a while loop with Next at the end) and everything seems to work. In another case, I had a loop similar to for I in Object.Iterate loop X := Fun(I); end loop; and I got the warning "X is read but never assigned." It looks like another for-related bug.