comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: How to hide inherited implementation of a public interface?
Date: Fri, 21 Mar 2014 21:14:49 +0100
Date: 2014-03-21T21:14:49+01:00	[thread overview]
Message-ID: <1goz7i2pg8860.1kma3d5vz1fl$.dlg@40tude.net> (raw)
In-Reply-To: lghukv$mp8$1@dont-email.me

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


  reply	other threads:[~2014-03-21 20:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-21 12:53 How to hide inherited implementation of a public interface? Natasha Kerensikova
2014-03-21 13:54 ` Dmitry A. Kazakov
2014-03-21 16:05   ` Natasha Kerensikova
2014-03-21 17:58 ` Jeffrey Carter
2014-03-21 20:14   ` Dmitry A. Kazakov [this message]
2014-03-21 23:02     ` Randy Brukardt
2014-03-22  8:31       ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox