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,fdc75443ea18fb32 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-27 13:38:40 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.ems.psu.edu!news.cis.ohio-state.edu!news.maxwell.syr.edu!newsfeed.cwix.com!sjc-peer.news.verio.net!news.verio.net!sea-read.news.verio.net.POSTED!not-for-mail Newsgroups: comp.lang.ada From: Brian Rogoff Subject: Re: Queue In-Reply-To: Message-ID: References: <%QRM7.39743$xS6.65958@www.newsranger.com> <9u0qhb$pq5$1@nh.pace.co.uk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Date: Tue, 27 Nov 2001 21:38:41 GMT NNTP-Posting-Host: 192.220.65.223 X-Complaints-To: abuse@verio.net X-Trace: sea-read.news.verio.net 1006897121 192.220.65.223 (Tue, 27 Nov 2001 21:38:41 GMT) NNTP-Posting-Date: Tue, 27 Nov 2001 21:38:41 GMT Organization: Verio Xref: archiver1.google.com comp.lang.ada:17066 Date: 2001-11-27T21:38:41+00:00 List-Id: On Tue, 27 Nov 2001, Matthew Heaney wrote: > "Marin David Condic" wrote in > message news:9u0qhb$pq5$1@nh.pace.co.uk... > > I'd still be willing to settle on the BC's with some enhancements and > > extensions. Anybody else willing to go that route? > > No. The problem with the Booch Components is that they use inheritance, > which is completely unnecessary unless you require dynamic polymorphic > behavior. > > The C++ STL doesn't use inheritance. The use of iterators and algorithms > abstracts away the details of specific containers, and thus treats all > collections as a "sequence." This is a form of static polymorphism. Interestingly enough, there was a proposal to do something like this (very much like the C++ STL) in Ada circa 1990. I mentioned it loooong ago, maybe in 1997 when there was some discussion of the STL here. I forget the author's name, but she was a prof at some South African university. What's interesting to me is that this was completely independent of the STL line of work. I can dig up the ref if anyone is interested. Doing an STL like library in Ada is certainly possible, but it will never fit as snugly with Ada as the STL does with C++, for a number of reasons. > The standard library should provide only the most basic primitives, from > which higher-level abstractions can be constructed. I agree completely. To do otherwise would be an abstraction inversion. You can build a safe library on top of a fast one, but not vice-versa. -- Brian