comp.lang.ada
 help / color / mirror / Atom feed
From: Jean-Pierre Rosen <rosen@adalog.fr>
Subject: Re: tagged type as generic parameter
Date: Thu, 03 Jan 2008 18:47:12 +0100
Date: 2008-01-03T18:47:12+01:00	[thread overview]
Message-ID: <837jlf.9p9.ln@hunter.axlog.fr> (raw)
In-Reply-To: <17k6uddmxknzi$.1q1crpca0ygrf.dlg@40tude.net>

Dmitry A. Kazakov a �crit :
> However, these are certainly not the case for the OP's code. Because Item
> is private there and Data is constrained. And even if Item were visible,
> then the right way would likely be #2, because "anything tagged" as in OP's
> code does not tell much about the inherited semantics of list elements.
> 
> IMO, your understanding of OOP is quite right.
> 
Yeap. In these times where everybody is talking about OOP, people tend 
to move from "everything can be done with inheritance" to "everything 
must be done with inheritance". To be honnest, some languages offer 
inheritance as the only way, so there is no choice.

When you are lucky enough to have a language that supports multiple 
paradigms, composition has its value.
-- 
---------------------------------------------------------
            J-P. Rosen (rosen@adalog.fr)
Visit Adalog's web site at http://www.adalog.fr



  reply	other threads:[~2008-01-03 17:47 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-03 15:20 tagged type as generic parameter Philippe Tarroux
2008-01-03 15:51 ` Dmitry A. Kazakov
2008-01-03 16:22   ` Adam Beneschan
2008-01-03 16:58     ` Dmitry A. Kazakov
2008-01-03 17:47       ` Jean-Pierre Rosen [this message]
2008-01-03 18:13         ` Pascal Obry
2008-01-03 19:20         ` Dmitry A. Kazakov
2008-01-03 21:37         ` Jeffrey R. Carter
2008-01-04 13:08           ` Philippe Tarroux
2008-01-04 15:03             ` Jean-Pierre Rosen
2008-01-04 13:08   ` Philippe Tarroux
2008-01-04 13:22     ` Georg Bauhaus
2008-01-04 15:38       ` Philippe Tarroux
2008-01-04 14:17     ` 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