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-17 00:28:28 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: Thu, 17 Jan 2002 08:28:03 +0000 (UTC) Organization: IKS GmbH Jena Message-ID: References: NNTP-Posting-Host: taranis.iks-jena.de X-Trace: branwen.iks-jena.de 1011256083 31063 217.17.192.37 (17 Jan 2002 08:28:03 GMT) X-Complaints-To: usenet@iks-jena.de NNTP-Posting-Date: Thu, 17 Jan 2002 08:28:03 +0000 (UTC) User-Agent: slrn/0.9.6.3 (Linux) Xref: archiver1.google.com comp.lang.ada:18997 Date: 2002-01-17T08:28:03+00:00 List-Id: * Stephen Leake wrote: >lutz@iks-jena.de (Lutz Donnerhacke) writes: >> * 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. > >Well, if they don't have to be types, you can easily do it in Ada. But >all your complaints were that it could not be done with abstract Ada >types. I'm sorry for providing my solutions in the same posting asking for hints. How can this be done easily?