comp.lang.ada
 help / color / mirror / Atom feed
From: Lionel Draghi <LioDraghi@filnet.fr>
To: cdsmith0@flash.net
Subject: Re: Inheritance versus Generics
Date: 1997/04/25
Date: 1997-04-25T00:00:00+00:00	[thread overview]
Message-ID: <3360066D.CAE@filnet.fr> (raw)
In-Reply-To: 33601924.774@flash.net


Craig Smith wrote:
> 
> Generics were a very power feature of Ada-83.  With the OO features
> introduced into Ada-95 (in particuliar, the tagged record and ability to
> inherit), are Generics obsolute? 
...

Clearly not, generics are even used by Ada 95 to provide certain kind of
inheritance :-)

I think this is a design issue : Inheritance and genericity have
different use,
and this justify existence of both :
- when you need to factorize common "properties" between related object,
you
should use inheritance, and build classes.
- when you need to factorize some algorythm between object possibly
without any
relation, you should use genericity.

Inheritance imply the "is a kind of" relation, Genericity do not.

D'accord ou pas? :-)

________________________________________________________________________________
Lionel Draghi               01 45 28 88 50                 17, rue Simon
Dereure
                                                          93 110
Rosny-sous-Bois
                                                                         
France

http://ada.eu.org/                                      
http://www.adahome.com/







  parent reply	other threads:[~1997-04-25  0:00 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-04-24  0:00 Inheritance versus Generics Craig Smith
1997-04-25  0:00 ` Robert Dewar
1997-04-25  0:00   ` Michael F Brenner
1997-04-25  0:00     ` Robert Dewar
1997-04-27  0:00       ` Nick Roberts
1997-04-29  0:00         ` Michael F Brenner
1997-05-02  0:00           ` Nick Roberts
1997-05-03  0:00             ` Robert Dewar
1997-05-02  0:00           ` John G. Volan
1997-04-29  0:00       ` Mats Weber
1997-05-01  0:00         ` Robert Dewar
1997-04-26  0:00   ` Michael Feldman
1997-04-25  0:00 ` Tucker Taft
1997-04-25  0:00 ` Robert A Duff
1997-04-25  0:00 ` Lionel Draghi [this message]
1997-04-25  0:00 ` Mats Weber
1997-04-27  0:00   ` Matthew Heaney
1997-04-27  0:00     ` Robert Dewar
1997-04-28  0:00       ` Bertrand Meyer
1997-05-03  0:00         ` Jon S Anthony
1997-05-04  0:00           ` Robert Dewar
1997-05-03  0:00         ` Robert A Duff
1997-05-03  0:00           ` Robert Dewar
1997-04-29  0:00     ` bertrand
1997-04-29  0:00       ` Robert Dewar
1997-04-28  0:00 ` Martin Lorentzon
  -- strict thread matches above, loose matches on Subject: below --
1997-04-27  0:00 tmoran
1997-05-03  0:00 tmoran
replies disabled

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