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: 103376,81bb2ce65a3240c3 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.204.154.133 with SMTP id o5mr1024784bkw.0.1335521171230; Fri, 27 Apr 2012 03:06:11 -0700 (PDT) Path: h15ni171105bkw.0!nntp.google.com!news2.google.com!news.glorb.com!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: What would you like in Ada202X? Date: Fri, 27 Apr 2012 12:05:44 +0200 Organization: cbb software GmbH Message-ID: <1lxhvqsv4vrk3.151nwucj0yj15.dlg@40tude.net> References: <3637793.35.1335340026327.JavaMail.geo-discussion-forums@ynfi5> <9af5eaaa-1c48-4455-a8e8-39dd9ee8092d@ot8g2000pbb.googlegroups.com> <3324774.1793.1335453581565.JavaMail.geo-discussion-forums@yncc41> <21303184.864.1335494280519.JavaMail.geo-discussion-forums@pbgg10> <4f9a543a$0$6563$9b4e6d93@newsspool4.arcor-online.net> <4f9a6af0$0$6566$9b4e6d93@newsspool3.arcor-online.net> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-04-27T12:05:44+02:00 List-Id: On Fri, 27 Apr 2012 11:46:24 +0200, Georg Bauhaus wrote: > On 27.04.12 10:19, Dmitry A. Kazakov wrote: >> On Fri, 27 Apr 2012 10:09:31 +0200, Georg Bauhaus wrote: >> >>> On 27.04.12 04:38, ytomino wrote: >>> >>>> And, some languages such as C# has tackled the problem that a base-class >>>> is changed independently of derived-classes. >>> >>> Implying, maybe, that inheritance of classes may not be the >>> best way to write reusable modules? >> >> and the best way is? > > Starting from at least one important distinction: > > - is-a inheritance used where > - has-a should have been used. HAS-A to reuse modules? To start with you cannot have HAS-A on subprograms in Ada. > Another hint at a possibly non-best way is the STL. So the claim is that reuse of generic units does not suffer the problems reuse of inherited operations have? In particular, the discussion was about conflicting names coming from independently developed modules. Are you telling me that generics have less problems with name clashes? Seriously? They have FAR worse problems with this! -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de