comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Generic procedures and their parameters
Date: Thu, 7 Sep 2006 09:32:05 +0200
Date: 2006-09-07T09:32:05+02:00	[thread overview]
Message-ID: <b5ezeh7gqghz.1gpog2d99hu0b$.dlg@40tude.net> (raw)
In-Reply-To: 1157560557.6258.24.camel@localhost

On Wed, 06 Sep 2006 18:35:58 +0200, Georg Bauhaus wrote:

> On Wed, 2006-09-06 at 17:09 +0200, Dmitry A. Kazakov wrote:
>> On Wed, 06 Sep 2006 16:14:07 +0200, Maciej Sobczak wrote:
>> 
>>>> Why is that shaky?  Integer IS ordered.
>>> 
>>> Is it also tagged? Do you want it to be?
>> 
>> Not Integer, but Integer'Class.
>> 
>>> Integer is not only Ordered. It's also Summable, Subtractable, 
>> [...]
>> 
>> Yes, it is called multiple inheritance.
> 
> A {PropA,PropB,...}able Integer has multiple interfaces,
> can act as any of them, etc, ok, but I think MI is inheritance
> of data as well, in the vernacular. Are you perhaps thinking
> of something like "aspect interfaces"?

I remember it is was a buzz word 2-3 years ago. (:-))

I don't think it makes any sense to separate interface and implementation
inheritance.

OK, in practice, there might be a granularity associated with the
visibility issues. For Ada it would mean that you could publicly inherit
from an interface and privately choose whether you inherit the
implementation as well, or rather provide a completely new one. And,
reverse, you don't inherit from interface, but, privately, do from the
implementation. The later is widely used in Ada (it is type X is private;)

But this all is independent on the question whether interface and
implementation inheritances are different things. They are not. 

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2006-09-07  7:32 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-06  8:51 Generic procedures and their parameters Maciej Sobczak
2006-09-06  9:43 ` Dmitry A. Kazakov
2006-09-06 12:36   ` Maciej Sobczak
2006-09-06 13:11     ` Robert A Duff
2006-09-06 14:14       ` Maciej Sobczak
2006-09-06 15:09         ` Dmitry A. Kazakov
2006-09-06 16:35           ` Georg Bauhaus
2006-09-07  7:32             ` Dmitry A. Kazakov [this message]
2006-09-07  6:48               ` Georg Bauhaus
2006-09-07 10:19                 ` Dmitry A. Kazakov
2006-09-08  9:11           ` Maciej Sobczak
2006-09-08 10:19             ` Dmitry A. Kazakov
2006-09-09 14:49         ` Robert A Duff
2006-09-09 15:34           ` Dmitry A. Kazakov
2006-09-09 23:26           ` Jeffrey R. Carter
2006-09-10 11:49             ` Robert A Duff
2006-09-10 19:43               ` Jeffrey R. Carter
2006-09-06 13:02   ` Robert A Duff
2006-09-06 14:09     ` Dmitry A. Kazakov
2006-09-08  3:35   ` Randy Brukardt
2006-09-08  7:21     ` Dmitry A. Kazakov
2006-09-09  1:29       ` Randy Brukardt
2006-09-09  7:14         ` Dmitry A. Kazakov
2006-09-09 14:32         ` Robert A Duff
2006-09-06 12:56 ` Robert A Duff
2006-09-07  2:47 ` Steve
2006-09-07  7:47   ` 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