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-15 01:40:02 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.uchicago.edu!yellow.newsread.com!netaxs.com!newsread.com!newsfeed00.sul.t-online.de!t-online.de!npeer.de.kpn-eurorings.net!news.uni-stuttgart.de!carbon.eu.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: 15 Sep 2003 10:33:56 +0200 Organization: Sun Microsystems Inc., http://www.sun.com/ Message-ID: References: <3F615341.4000100@attbi.com> <568ede3c.0309121211.743a8da2@posting.google.com> <3F634E58.4080803@attbi.com> <3F64C712.9010105@attbi.com> 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 1063614837 20945 129.159.112.195 (15 Sep 2003 08:33:57 GMT) X-Complaints-To: usenet@new-usenet.uk.sun.com NNTP-Posting-Date: 15 Sep 2003 08:33:57 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:42512 Date: 2003-09-15T08:33:57+00:00 List-Id: >>>>> "RIE" == Robert I Eachus writes: RIE> Hyman Rosen wrote: >> Robert I. Eachus wrote: >> >>> You inherit from two virtual classes, then use concrete mix-ins to >>> implement the classes. >> I still feel like we're talking past each other. I am showing you >> why >> one might want to inherit from two different concrete classes. In my >> example, you want an object which is Colorable and Resizable, and you >> want to reuse the concrete implementations of the adapter classes. RIE> There is no problem inheriting from two concrete classes. I showed RIE> how it is done in Ada. What I have been saying is that you can't have RIE> direct inheritance (with the isa relationship) from two unrelated RIE> classes. This paper by Bertrand Meyer: RIE> http://archive.eiffel.com/doc/manuals/technology/bmarticles/joop/multiple.html Of course you can, provided that you don't expect them to magically react to form something entirely new, like apple pie. To do that, you would probably use mixins.