comp.lang.ada
 help / color / mirror / Atom feed
From: dmitry@elros.cbb-automation.de (Dmitry A. Kazakov)
Subject: Re: Sugestion to Multiple Inheritance
Date: Mon, 28 Jan 2002 16:23:33 GMT
Date: 2002-01-28T16:23:33+00:00	[thread overview]
Message-ID: <3c556f07.1368299@news.cis.dfn.de> (raw)
In-Reply-To: Pine.BSF.4.40.0201250003540.88868-100000@bpr.best.vwh.net

On Fri, 25 Jan 2002 00:09:44 +0000, Brian Rogoff
<bpr@bpr.best.vwh.net> wrote:

>On Wed, 23 Jan 2002, Dmitry A. Kazakov wrote:
>> On Tue, 22 Jan 2002 16:55:51 +0000, Brian Rogoff
>> <bpr@bpr.best.vwh.net> wrote:
>>
>> [...]
>>
>> >I prefer the generic approach to the OO approaches.
>> >
>> >IMHO OOP is not as important as the programming world has made it out to
>> >be, and should be used a lot less than it is.
>>
>> If I substitute ADT for OO, will above remain correct then?
>
>I have no idea what point you are trying to make. OO approaches usually
>provide some mix of inheritance (though Common List defstruct has
>inheritance without OOP I think) and run time polymorphism/dynamic
>dispatch. ADTs are an orthogonal feature/capability.

In my view if you strip away myths from OO, the rest will be plain
ADT, i.e. an ability to build new types from old ones. Inheritance and
polymorphism are just methods [among many others] to ease that
process.

>To be specific, I much prefer a language like ML (even SML, which has no
>objects) to one like Java. Of course, I'd rather have OCaml (or Ada) which
>allows me to have OO features when they are appropriate. I just think that
>OO features are not frequently needed or desirable.

Let's forget objects and classes [it is enough to have types and
variables] as well as implementation/compilation issues [for a minute
(:-))]. Now, what is wrong with:

1. Any type* can be derived from
2. Any type* may have initialization and finalization
3. A dispatching argument can by of any type*

[*] class-wide types are excluded.

>You may certainly disagree, as there are still nations which allow that.

Yes, becase IMO the rational part of OO is ADT and I believe that
practically any program requires some form of ADT. Then I'd prefer ADT
to generics.

Regards,
Dmitry Kazakov



  reply	other threads:[~2002-01-28 16:23 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-11 10:20 Sugestion to Multiple Inheritance Lutz Donnerhacke
2002-01-11 17:21 ` Stephen Leake
2002-01-11 17:53   ` Lutz Donnerhacke
2002-01-11 19:57     ` Stephen Leake
2002-01-17  8:28       ` Lutz Donnerhacke
2002-01-17 14:31         ` Stephen Leake
2002-01-17 14:54           ` Lutz Donnerhacke
2002-01-17 20:52             ` Jim Rogers
2002-01-11 18:07 ` Mark Lundquist
2002-01-11 18:14 ` Richard Riehle
2002-01-11 20:56   ` Hyman Rosen
2002-01-12  7:35     ` Richard Riehle
2002-01-13  6:37       ` Hyman Rosen
2002-01-14 13:58         ` John English
2002-01-14 16:27           ` Ole-Hjalmar Kristensen
2002-01-12  2:09   ` Will
2002-01-11 22:04 ` Matthew Heaney
2002-01-15 15:32   ` Hyman Rosen
2002-01-15 16:03     ` Lutz Donnerhacke
2002-01-18 19:03       ` Matthew Heaney
2002-01-21 11:23         ` Lutz Donnerhacke
2002-01-21 16:43           ` Brian Rogoff
2002-01-21 17:00             ` Lutz Donnerhacke
2002-01-22 16:55               ` Brian Rogoff
2002-01-23  8:58                 ` Dmitry A. Kazakov
2002-01-25  0:09                   ` Brian Rogoff
2002-01-28 16:23                     ` Dmitry A. Kazakov [this message]
2002-01-12  0:28 ` Nick Roberts
replies disabled

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