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-Thread: 103376,8ddc2f0fbdfbed75 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: design changes per Ada 2005/12? Date: Tue, 26 Apr 2011 18:12:02 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <49b85caa-700c-44c8-8a11-2f512083aca5@r6g2000vbz.googlegroups.com> <524ddf9b-2727-461a-b14b-e2171cf61190@dn9g2000vbb.googlegroups.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1303859524 19811 69.95.181.76 (26 Apr 2011 23:12:04 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Tue, 26 Apr 2011 23:12:04 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 Path: g2news2.google.com!news3.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!feed.ac-versailles.fr!news.ecp.fr!news.jacob-sparre.dk!pnx.dk!jacob-sparre.dk!ada-dk.org!.POSTED!not-for-mail Xref: g2news2.google.com comp.lang.ada:20029 Date: 2011-04-26T18:12:02-05:00 List-Id: "Lucretia" wrote in message news:524ddf9b-2727-461a-b14b-e2171cf61190@dn9g2000vbb.googlegroups.com... On Apr 23, 1:41 am, "Randy Brukardt" wrote: > "Lucretia" wrote in message ... >> We tried that with the new Queue containers, and IMHO it is a disaster. >> You >> have to use an extra instantiation and extra formal parameters for a >> feature >> that you are not going to use on 90% of the programs. (Typically, you >> only >> use one kind of queue in a program.) > >Things like iterators could be implemented with interfaces ok. And indeed they are (see AI05-0139-2). But it is interesting that iterators were the only example where interfaces worked. We tried and discarded models using interfaces for both implicit dereferencing and indexing, because they either ended up as nothing more than a marker (which can be accomplished in a straightforward way without using any interfaces), or because they required violating visibility/overloading rules. Randy.