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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: How to hide inherited implementation of a public interface? Date: Fri, 21 Mar 2014 21:14:49 +0100 Organization: cbb software GmbH Message-ID: <1goz7i2pg8860.1kma3d5vz1fl$.dlg@40tude.net> References: Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: cTj7CVEwmZyjrFPUnpIvWg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: number.nntp.dca.giganews.com comp.lang.ada:185276 Date: 2014-03-21T21:14:49+01:00 List-Id: On Fri, 21 Mar 2014 10:58:54 -0700, Jeffrey Carter wrote: > On 03/21/2014 05:53 AM, Natasha Kerensikova wrote: >> >> package I is >> type T is interface; >> procedure P (Object : in out T) is abstract; >> end I; > > "IMHO, Interfaces are worthless." Interface is an abstract type. Abstract types are not worthless. Worthless is the Java's idea that multiple inheritance could become more useful, less flawed, choose what you want, when restricted to interfaces. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de