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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,5add429c86f59001 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Ada vs Eiffel - Ada programmer approach Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <405b5054-4c8f-4e16-9ea8-503a9b9f976e@t21g2000yqi.googlegroups.com> <4A19765C.608@obry.net> <8105b65f-4de9-4653-b43a-d55ee33f072d@k2g2000yql.googlegroups.com> <9rWSl.118630$DP1.42605@attbi_s22> Date: Tue, 26 May 2009 20:35:31 +0200 Message-ID: <1rhpe82afkuam$.8myfw4oxrpdz$.dlg@40tude.net> NNTP-Posting-Date: 26 May 2009 20:35:32 CEST NNTP-Posting-Host: c972aaf3.newsspool4.arcor-online.net X-Trace: DXC=_3oL9J<]Y;5L2C_`koXfC54IUKT6NQQB3U^R6d7VE9cI=Nc6 X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:6027 Date: 2009-05-26T20:35:32+02:00 List-Id: On Tue, 26 May 2009 18:21:57 GMT, Jeffrey R. Carter wrote: > Ludovic Brenta wrote: >> Pascal Obry wrote on comp.lang.ada: >> >>> - multiple inheritance >> >> I'm not sure this is a good thing. In fact, I'm not sure simple >> inheritance is always a good thing, either. I tend to prefer >> composition and generics. > > I agree. I never create tagged types, except to obtain finalization. I think the > widespread acceptance of programming by extension, even by People Who Should > Know Better, represents the triumph of those who emphasize ease of writing over > ease of reading. Tagged type represents just one case in inheritance. When you write subtype S is T () you inherit form T. When you write type I is range <>; you inherit from universal integer, etc. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de