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!mx02.eternal-september.org!feeder.eternal-september.org!gandalf.srv.welterde.de!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: A few questions Date: Tue, 3 Nov 2015 00:40:37 -0600 Organization: JSA Research & Innovation Message-ID: References: NNTP-Posting-Host: rrsoftware.com X-Trace: loke.gir.dk 1446532838 17417 24.196.82.226 (3 Nov 2015 06:40:38 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Tue, 3 Nov 2015 06:40:38 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-RFC2646: Format=Flowed; Original Xref: news.eternal-september.org comp.lang.ada:28188 Date: 2015-11-03T00:40:37-06:00 List-Id: "Simon Wright" wrote in message news:ly611kmh1g.fsf@pushface.org... ... > I wrote the attached, using generalized iteration, which bears a strong > resemblance to the standard container iteration (the names bear too > strong a resemblance! but this way you can see the commonality). I suspect you could have written this in a lot simpler fashion. Something similar to the Prime_Numbers iterator found in the ACATS foundation (F552A00, look in the support subdirectory, specifically http://www.ada-auth.org/cgi-bin/cvsweb.cgi/acats/support/f552a00.a) would be a starting point. (Thanks again to Brad Moore for creating this foundation and the associated ACATS tests to give all Ada implementers something to use as a correct example of iterators.) Randy.