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: Mon, 16 Nov 2015 13:16:45 -0600 Organization: JSA Research & Innovation Message-ID: References: <68087ee3-fc89-4c13-b5c4-3cd8984e9643@googlegroups.com> NNTP-Posting-Host: rrsoftware.com X-Trace: loke.gir.dk 1447701406 19292 24.196.82.226 (16 Nov 2015 19:16:46 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Mon, 16 Nov 2015 19:16:46 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: news.eternal-september.org comp.lang.ada:28406 Date: 2015-11-16T13:16:45-06:00 List-Id: "Brad Moore" wrote in message news:68087ee3-fc89-4c13-b5c4-3cd8984e9643@googlegroups.com... On Thursday, November 12, 2015 at 2:08:54 PM UTC-7, Randy Brukardt wrote: ... >> > On the other hand, why did Brad include function Iterate? >> >> It appears that he wanted tracing of the initialization (as that is all >> it >> does other than making a new iterator that is a copy of the first). It >> shouldn't be necessary. > >It's been a while since I wrote that example, and I'm not entirely sure why >I did it >that way, but to be honest, I think I started with the existing container >iterators as >my starting point example, which all have an Iterate function, and I may >have just >assumed I needed a function which returned an class-wide object. >If the Prime Number Iterator is useful as an example for others, it would >be nice to >eliminate the Iterate function from the example. It seems also that there >should be >some more tests written to cover the failure cases that we are discovering >now. I'd >be happy to update this ACATS test, if Randy thinks its worthwhile. I think it would be good to have a separate test using this model (you wouldn't need to change the foundation to do it - I think - you'd just not call the Iterate function). I don't want to change existing ACATS tests unless they are actually wrong (and none of these are). Randy.