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-7-bit Path: g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!attbi_s22.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: tagged type as generic parameter References: <602e79cf-755f-4600-a2cd-0cabf781136a@e25g2000prg.googlegroups.com> <17k6uddmxknzi$.1q1crpca0ygrf.dlg@40tude.net> <837jlf.9p9.ln@hunter.axlog.fr> In-Reply-To: <837jlf.9p9.ln@hunter.axlog.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s22 1199396232 12.201.97.213 (Thu, 03 Jan 2008 21:37:12 GMT) NNTP-Posting-Date: Thu, 03 Jan 2008 21:37:12 GMT Organization: AT&T ASP.att.net Date: Thu, 03 Jan 2008 21:37:12 GMT Xref: g2news1.google.com comp.lang.ada:19184 Date: 2008-01-03T21:37:12+00:00 List-Id: 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. > When you are lucky enough to have a language that supports multiple > paradigms, composition has its value. I agree. Programming by extension, emphasizing, as it does, ease of writing over ease of reading, should be avoided whenever possible by SW engineers, and used with the same reluctance and care that they give to gotos and access types. -- Jeff Carter "Have you gone berserk? Can't you see that that man is a ni?" Blazing Saddles 38