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,91276ec2ea911d3f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Generic procedures and their parameters Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.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: <15ibl2xejtc68.1eg90p1fwn18p$.dlg@40tude.net> <1157560557.6258.24.camel@localhost> Date: Thu, 7 Sep 2006 09:32:05 +0200 Message-ID: NNTP-Posting-Date: 07 Sep 2006 09:32:05 CEST NNTP-Posting-Host: ee909469.newsspool3.arcor-online.net X-Trace: DXC=fDGTQZoKViEX36K@\WTHGJMcF=Q^Z^V3H4Fo<]lROoRA4nDHegD_]REibZ;MIGHh_MDNcfSJ;bb[EFCTGGVUmh?DN\HXHJ4e80NcdTQmVfKccJ X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:6490 Date: 2006-09-07T09:32:05+02:00 List-Id: On Wed, 06 Sep 2006 18:35:58 +0200, Georg Bauhaus wrote: > On Wed, 2006-09-06 at 17:09 +0200, Dmitry A. Kazakov wrote: >> On Wed, 06 Sep 2006 16:14:07 +0200, Maciej Sobczak wrote: >> >>>> Why is that shaky? Integer IS ordered. >>> >>> Is it also tagged? Do you want it to be? >> >> Not Integer, but Integer'Class. >> >>> Integer is not only Ordered. It's also Summable, Subtractable, >> [...] >> >> Yes, it is called multiple inheritance. > > A {PropA,PropB,...}able Integer has multiple interfaces, > can act as any of them, etc, ok, but I think MI is inheritance > of data as well, in the vernacular. Are you perhaps thinking > of something like "aspect interfaces"? I remember it is was a buzz word 2-3 years ago. (:-)) I don't think it makes any sense to separate interface and implementation inheritance. OK, in practice, there might be a granularity associated with the visibility issues. For Ada it would mean that you could publicly inherit from an interface and privately choose whether you inherit the implementation as well, or rather provide a completely new one. And, reverse, you don't inherit from interface, but, privately, do from the implementation. The later is widely used in Ada (it is type X is private;) But this all is independent on the question whether interface and implementation inheritances are different things. They are not. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de