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-24 15:07:19 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!newsfeed!nntp.abs.net!uunet!dca.uu.net!ash.uu.net!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Suggestion for Ada 200x - Interface inheritance Date: 24 May 2003 18:07:13 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <0Pxza.699607$OV.652508@rwcrnsc54> <5ad0dd8a.0305240435.337d9373@posting.google.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1053814033 13490 199.172.62.241 (24 May 2003 22:07:13 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Sat, 24 May 2003 22:07:13 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:37739 Date: 2003-05-24T18:07:13-04:00 List-Id: wojtek@power.com.pl (Wojtek Narczynski) writes: > This AI has a funny title: "Abstract Interfaces to provide Multiple > Inheritance". Two misconceptions: 1. Interfaces cannot be concrete, 2. > Interfaces do not provide multiple inheritance. They are just a > different solution to to the problem. More than one interface can be inherited. That sounds like "multiple inheritance" to me. Java interface inheritance is just like C++ muliple inheritance, with the restriction that you can't inherit record components and procedure bodies. > But I'll welcome whatever comes out, because the inability to create > heterogenous collections just plain sucks. What do you mean by that? You can pass class-wide types to generic collection packages, and that's heterogeneous. I guess you mean you can't do what interface'Class allows... > By the way, is there an AI for the second thing Ada could learn from > Java, that is 'throws' clause? I think there's one about pre- and post-conditions, which is somewhat related. By the way, the ARG is not listening to your comments posted *here*. - Bob