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-28 10:11:51 PST Path: news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.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: 28 Sep 2003 18:10:02 +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 1064769109 8413 62.49.19.209 (28 Sep 2003 17:11:49 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sun, 28 Sep 2003 17:11:49 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: news1.google.com comp.lang.ada:75 Date: 2003-09-28T18:10:02+01:00 List-Id: Matthew Heaney writes: > Michael Erdmann writes: > > > This is not the point! The point is, that i like to setup a > > repository of concepts, which is specialized when it is used. > > For example, the iterator (or enumerator) is a very general > > concept which requieres basicaly the following methods > > > > First - Return the first element This will have a problem in Ada since you'll be treating the iterator as an in out parameter to what otherwise looks like a function. > > Next - Fetch the next element > > HasMoreElement - Check if there is more > > > > > > By introducing a set of concepts i like to standarize the coding. > For example, all the containers and iterators in the Charles library > reify your iterator concept above. So what's the problem? That > library does exactly what you want, which is to iterate over the > elements in a container. 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 ..