From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,bf5045b7cee3d4b X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!news.cs.univ-paris8.fr!u-psud.fr!not-for-mail From: Philippe Tarroux Newsgroups: comp.lang.ada Subject: Re: tagged type as generic parameter Date: Fri, 04 Jan 2008 14:08:56 +0100 Organization: University Paris-Sud, France. Message-ID: References: <602e79cf-755f-4600-a2cd-0cabf781136a@e25g2000prg.googlegroups.com> <17k6uddmxknzi$.1q1crpca0ygrf.dlg@40tude.net> <837jlf.9p9.ln@hunter.axlog.fr> NNTP-Posting-Host: osiris.limsi.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: news2.u-psud.fr 1199452040 10464 129.175.157.197 (4 Jan 2008 13:07:20 GMT) X-Complaints-To: newsmaster@u-psud.fr NNTP-Posting-Date: Fri, 4 Jan 2008 13:07:20 +0000 (UTC) User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) In-Reply-To: Xref: g2news1.google.com comp.lang.ada:19192 Date: 2008-01-04T14:08:56+01:00 List-Id: Jeffrey R. Carter a �crit : > Jean-Pierre Rosen wrote: >> 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. > > Given the OP's comment that the formal is tagged so that he will be > able to build lists of the type implies that he comes from a > background in such a language. What i wanted is not the "best" way to implement lists. I just wanted to explore this way. The strong OOP orientation is due to the fact that i tried this example after a discussion with one of my student arguing that Ada is too complex compared to Java. I wanted to explore '� la Java' solutions. > >> When you are lucky enough to have a language that supports multiple >> paradigms, composition has its value. I agree too. Philippe Tarroux