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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,229ea0001655d6a2 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!out02a.usenetserver.com!news.usenetserver.com!in02.usenetserver.com!news.usenetserver.com!cycny01.gnilink.net!cyclone1.gnilink.net!gnilink.net!nx01.iad01.newshosting.com!newshosting.com!newspeer.monmouth.com!colt.net!feeder.news-service.com!peer1.news.newnet.co.uk!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Generic Package Date: Sat, 28 Apr 2007 18:50:36 +0100 Organization: Pushface Message-ID: References: <1177539306.952515.222940@s33g2000prh.googlegroups.com> <1177601484.444701.171560@r35g2000prh.googlegroups.com> <1177672290.8055.6.camel@localhost> <1177683046.12952.4.camel@localhost> <10s763mibaxrd.1fj5hiz8r6tnq.dlg@40tude.net> <1177710244.6428.9.camel@localhost.localdomain> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1177782636 1296 62.49.19.209 (28 Apr 2007 17:50:36 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sat, 28 Apr 2007 17:50:36 +0000 (UTC) Cancel-Lock: sha1:q44aJoAMwkGq026TLHoEIGZvtuk= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (darwin) Xref: g2news1.google.com comp.lang.ada:15386 Date: 2007-04-28T18:50:36+01:00 List-Id: "Dmitry A. Kazakov" writes: > This is too swampy. There is a sufficient difference between foreach > closures and interators. You can have foreach on an unordered set, > but you cannot have iterators. The difference is in who has the > control over the enumeration process. Iterators are more binding for > the container and less for the user of. Clearly "iterator" means something to you that it doesn't to me. This is probably not related to the discussions round Ada 05 which led to the use of the word Cursor instead of Iterator (the BCs use Iterator for historical reasons, but in a completely different sense from the STL, which is the basis for Ada.Containers). > Consider a library. Say you wished to read all books there. You come > to the librarian and order a book. Then you read that book and > return. Now, you can ask him: give me another book. But you cannot > require him to give you a book that you haven't yet read. That is > your business, he would answer. I think that's only because readers are a tiresome perturbation in the librarian's universe!