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.52.6.161 with SMTP id c1mr10434412vda.5.1422126721294; Sat, 24 Jan 2015 11:12:01 -0800 (PST) X-Received: by 10.140.104.166 with SMTP id a35mr81490qgf.20.1422126721234; Sat, 24 Jan 2015 11:12:01 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!feeder.erje.net!eu.feeder.erje.net!newspeer1.nac.net!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!bm13no2753837qab.0!news-out.google.com!q4ni4qan.0!nntp.google.com!v8no3271596qal.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 24 Jan 2015 11:12:01 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=83.99.113.5; posting-account=sDyr7QoAAAA7hiaifqt-gaKY2K7OZ8RQ NNTP-Posting-Host: 83.99.113.5 References: <713608f7-d46e-4b73-a34e-552d1b978d2c@googlegroups.com> <01fc779f-e274-4515-a88f-144d515d323f@googlegroups.com> <3fa7d4c4-f9fe-4d00-9034-a348802087a9@googlegroups.com> <87iofx9d2r.fsf@adacore.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <7ee0fd4b-c151-41c5-af3c-864d8a46f931@googlegroups.com> Subject: Re: Strange error From: Laurent Injection-Date: Sat, 24 Jan 2015 19:12:01 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:24728 Date: 2015-01-24T11:12:01-08:00 List-Id: > > But in Ada 2012, we have iterators, which largely solves the problem. > > Put all your eggs in one basket, and if the iterator works, then all > > the myriad "for" loops around the code will work. > > Or in Ada 2005, you can use the Iterate primitive of the containers. > Then you don't need to write that boilerplate either, as it is already > done for you. Given the choice though, Ada 2012 iterators provides the > preferred approach. > > Brad Iterators are next on my todo list which still only exist in my mind. Quite often the cause of my stupid errors. Laurent