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,34c2aa33b8bdb1a9 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-11 09:54:13 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news-FFM2.ecrc.net!news.iks-jena.de!lutz From: lutz@iks-jena.de (Lutz Donnerhacke) Newsgroups: comp.lang.ada Subject: Re: Sugestion to Multiple Inheritance Date: Fri, 11 Jan 2002 17:53:29 +0000 (UTC) Organization: IKS GmbH Jena Message-ID: References: NNTP-Posting-Host: taranis.iks-jena.de X-Trace: branwen.iks-jena.de 1010771609 21007 217.17.192.37 (11 Jan 2002 17:53:29 GMT) X-Complaints-To: usenet@iks-jena.de NNTP-Posting-Date: Fri, 11 Jan 2002 17:53:29 +0000 (UTC) User-Agent: slrn/0.9.6.3 (Linux) Xref: archiver1.google.com comp.lang.ada:18784 Date: 2002-01-11T17:53:29+00:00 List-Id: * Stephen Leake wrote: >lutz@iks-jena.de (Lutz Donnerhacke) writes: >> A -> B B is an extended A and C is an extended A. >> | | D combines both extensions (requiring both). >> v v >> C -> D > >I need more information about why C and B need to be independent types. They do not need to be types at all. They are abstactions => interfaces. Example: A describes a sort algorithm. B describes stableness. C describes in-place-ness. D describes stable, in-place sort algorithms. The problem becomes worse if more attributes are required. Planned usage: generic .... Stable_Sort ...; package ... end package; If I define a implementation of D, I'd like to use is in contexts where A, B, or C is required as well. >Basically, you've drawn a diagram that can't be implmented in Ada, and >asked how to implement it. Ack. And I offered some solutions. I won't complain about a missing feature. >The only solution is to give more information about the real problem, so >we can suggest how to modify the diagram so it can be implemented. HTH.