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,1592759aa83d0d45 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-29 05:06:38 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: maa@liacc.up.pt (=?ISO-8859-1?Q?M=E1rio_Amado_Alves?=) Newsgroups: comp.lang.ada Subject: Re: MI in Ada 200X (was: Suggestion for Ada 200x - Interface inheritance) Date: 29 May 2003 05:06:38 -0700 Organization: http://groups.google.com/ Message-ID: <4a4de33a.0305290406.567b7451@posting.google.com> References: <0Pxza.699607$OV.652508@rwcrnsc54> <4a4de33a.0305280557.5d5aba37@posting.google.com> <3ED56CA9.6050301@attbi.com> NNTP-Posting-Host: 62.48.153.196 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1054209998 7261 127.0.0.1 (29 May 2003 12:06:38 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 29 May 2003 12:06:38 GMT Xref: archiver1.google.com comp.lang.ada:37989 Date: 2003-05-29T12:06:38+00:00 List-Id: ""Everybody wants class MI. The reasons it was left out of Ada 95 and 83, the cons, are weaker than the pros."" "Convince me :-) Seriously what are the pros and cons of MI." (Preben) The cons include the (aledged) "implementation burden" (Tucker Taft). "I must not be everybody. Ada currently supports the mix-in model of multiple inheritance." (Robert) Sure. I was talking about *class* MI. (Tucker calls it "linguistic".) The pros include "naturalness" of expression, occuring both at creation type Child is new Mother, Father; and at selection Do (A_Child.Mother_Feature) Do (A_Child.Father_Feature) And sure it's not "everybody" who wants it. But many folks do and recurrently voice it. It's an unsettled issue. Kind of as exceptions as tagged types (AE'2001). I guess it's Ada class wide programming felt as its most natural OO idiom. I wouldn't mind having it as an extension defined in a specialized annex. There is already a number of 'standard' Ada subsets (DSA, SPARK, Kernel Ada). Why not a superset? pragma Multiple_Inheritance (Child); -- :-)