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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1116ece181be1aea X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-09 00:42:16 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed.news.qwest.net!namche.sun.com!news1brm.central.sun.com!new-usenet.uk.sun.com!not-for-mail From: olehjalmar kristensen - Sun Microsystems - Trondheim Norway Newsgroups: comp.lang.ada Subject: Re: Is the Writing on the Wall for Ada? Date: 09 Sep 2003 09:34:29 +0200 Organization: Sun Microsystems Inc., http://www.sun.com/ Message-ID: References: NNTP-Posting-Host: khepri06.norway.sun.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: new-usenet.uk.sun.com 1063092869 9803 129.159.112.195 (9 Sep 2003 07:34:29 GMT) X-Complaints-To: usenet@new-usenet.uk.sun.com NNTP-Posting-Date: 9 Sep 2003 07:34:29 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:42307 Date: 2003-09-09T07:34:29+00:00 List-Id: >>>>> "HR" == Hyman Rosen writes: HR> Robert C. Leif wrote: >> In particular adding interfaces to Ada allows derived types >> where the type inherits one parent type and adds one or more interfaces. HR> Thereby exhibiting the simple lack of courage to add multiple HR> inheritance. Why should we limit to inheriting from one type? HR> What is it about one that makes it better than two or more? Beats me. In fact, one of the *nice* things about the C++ multiple inheritance is that it allows me to express roles (a la Reenskaug) and then combine different roles in the same object without jumping through hoops. In Smalltalk you need an extra tool to do this, in C++ all you need is a little care. I suppose it *could* be done in Ada with generics, but I have not tried it, and it would certainly be more obfuscated.