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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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!news3.google.com!news.glorb.com!newsgate.cistron.nl!newsfeed.stueberl.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!news.arcor.de!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Interfaces Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.14.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <8764xj9wzf.fsf@deneb.enyo.de> <877jhz0y52.fsf@deneb.enyo.de> Date: Tue, 17 May 2005 09:36:50 +0200 Message-ID: NNTP-Posting-Date: 17 May 2005 09:35:46 MEST NNTP-Posting-Host: 8bf9f33a.newsread2.arcor-online.net X-Trace: DXC=U9k87JaS0CQkVRFeeUa4iQQ5U85hF6f;TjW\KbG]kaMX6=9@_^ On Mon, 16 May 2005 21:27:37 +0200, Florian Weimer wrote: > Maybe it wouldn't be too complicated to add a way to specify the > interface which you are overriding? That must be done in all cases, even for inheritance from concrete types, IMO! That would save a lot of grey hairs. > Something like "overriding J1 > procedure Foo"? This would result in an error message if Foo also > overrode a subprogram inherited from T or J2. That alone would not help much. Consider you have overridden J1.Foo and J2.Foo using different implementations, then which one will be called on Foo (X)? Renaming is the only visible way I think. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de