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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,309015504ed37ff0 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-29 13:13:32 PST Path: news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Usage of Interfaces with Ada 95 Date: 29 Sep 2003 21:11:40 +0100 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: <1064595326.831730@master.nyc.kbcfp.com> <4nii41-067.ln1@boavista.snafu.de> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1064866410 18637 62.49.19.209 (29 Sep 2003 20:13:30 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Mon, 29 Sep 2003 20:13:30 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: news1.google.com comp.lang.ada:206 Date: 2003-09-29T21:11:40+01:00 List-Id: Matthew Heaney writes: > Simon Wright writes: > > > And so do Booch Component iterators, which are abstract, and which of > > course are much more like what all English-speaking programmers bar > > those who also speak STL understand by Iterator than the STL ones > > which Charles has adopted. I just have to get that dig in. And there > > are some on the ARG who have similar views. We shall have to see how > > it goes! Personally I have no problem at all with what the STL does, > > just some of the names it's adopted for the concepts .. > > I don't know why you'd think this. I didn't make this up. Read the > chapter titled Iterator in the design patterns book by Gamma et al. The > English-speaking world (and the German-speaking world too, apparently) > has settled on the terms "container" and "iterator." And "factory > method." And "visitor." And whatever. So stop fighting it and read > Gamma! You know that I am perfectly well aware of what Iterators are for. I have just checked the GoF and Grady's book, and both of them are a lot closer (IMO) to what the BCs mean by Iterator than what the STL does. The STL means something quite like "designator of one end of a half-open range". I am not a C++ speaker, but for (i = cont.start(); i != cont.oneAfterTheEnd(); i++) is *not* the way the GoF, or Grady, describe it.