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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable 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 23:11:29 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!teaser.fr!enst.fr!not-for-mail From: "Robert C. Leif" Newsgroups: comp.lang.ada Subject: RE: Is the Writing on the Wall for Ada? Date: Tue, 9 Sep 2003 23:09:17 -0700 Organization: Newport Instruments Message-ID: Reply-To: rleif@rleif.com NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1063174238 64579 137.194.161.2 (10 Sep 2003 06:10:38 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Wed, 10 Sep 2003 06:10:38 +0000 (UTC) To: "'Ed Falis'" , Return-Path: X-Mailer: Microsoft Office Outlook, Build 11.0.5329 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: <20030909091326.03b02610.falis@verizon.net> Thread-Index: AcN3XivBY0xQgpn9SaG0llQ6SJ0wbQAAuy8w X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: comp.lang.ada mail to news gateway List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:42337 Date: 2003-09-09T23:09:17-07:00 "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." I do not believe that I wrote this! Bob Leif Robert C. Leif, Ph.D. rleif@rleif.com -----Original Message----- From: Ed Falis [mailto:falis@verizon.net] Sent: Tuesday, September 09, 2003 6:14 AM To: comp.lang.ada@ada.eu.org Subject: Re: Is the Writing on the Wall for Ada? On 09 Sep 2003 09:34:29 +0200 olehjalmar kristensen - Sun Microsystems - Trondheim Norway wrote: > >>>>> "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. I've done it in Ada using access discriminants to implement multiple inheritance - takes an awful lot of "plumbing" hanging around to do it. On the other hand, Eiffel lends itself quite nicely and cleanly to the role modelling approach, because it explicitly addresses the stickier issues in MI. - Ed