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-Thread: 103376,104df2b9b7a2f689 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Interfaces Date: 16 May 2005 16:09:42 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <8764xj9wzf.fsf@deneb.enyo.de> <877jhz0y52.fsf@deneb.enyo.de> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1116274182 23879 192.74.137.71 (16 May 2005 20:09:42 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Mon, 16 May 2005 20:09:42 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: g2news1.google.com comp.lang.ada:11048 Date: 2005-05-16T16:09:42-04:00 List-Id: Florian Weimer writes: > * Robert A. Duff: > > > But the main argument against solving this problem is that it would > > introduce a huge amount of complexity to solve a fairly rare problem. > > I was pretty-much convinced by that. > > Maybe it wouldn't be too complicated to add a way to specify the > interface which you are overriding? Something like "overriding J1 > procedure Foo"? This would result in an error message if Foo also > overrode a subprogram inherited from T or J2. Maybe. I'm not sure how this would work with multiple inheritance in general. For example the diamond inheritance pattern. > > Ada's interfaces were modeled primarily after Java's interfaces, by the > > way. > > I wasn't sure, after reading the Java language specification, if Java > interfaces had the same problem. 8-> I think it's the same, but I'm not entirely sure -- I haven't looked at the Java specs in a while. - Bob