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,4b3c1a8f7db90f9 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!c22g2000prc.googlegroups.com!not-for-mail From: Ivan Levashew Newsgroups: comp.lang.ada Subject: Re: Interfaces and abstract tagged types Date: Thu, 16 Oct 2008 00:51:53 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <1w8x4i0peinwk$.16cenhvch5kv5.dlg@40tude.net> NNTP-Posting-Host: 92.125.93.90 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1224143513 4779 127.0.0.1 (16 Oct 2008 07:51:53 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 16 Oct 2008 07:51:53 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: c22g2000prc.googlegroups.com; posting-host=92.125.93.90; posting-account=SWSr0goAAABcqpu6T_j1x1_Ub5y2Ekfy User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:2405 Date: 2008-10-16T00:51:53-07:00 List-Id: > > >> (Interfaces was a huge mistake) > > > Interesting. =A0Why do you say so? > > Because there already existed abstract types for > that. One should simply > have allowed honest multiple inheritance. > > The limitation of not having any implementations of > primitive operations or > component makes just no sense. I'm wondering why nobody has replied yet. I think it to be a known thing. Interfaces are by definition implementation-less. A bindable implementation of interface is called adaptor. In Ada 2005, adaptors are mapped to generic mix-ins. See Case 2 here: http://www.adaic.org/learn/tech/multin.html The only difference with Ada 2005 is that mix-ins were unable to be adaptors in Ada 95 (there was no interfaces).