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:37:10 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!logbridge.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Sugestion to Multiple Inheritance Date: 11 Jan 2002 12:21:00 -0500 Organization: NASA Goddard Space Flight Center Message-ID: References: NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1010769903 6801 128.183.220.71 (11 Jan 2002 17:25:02 GMT) X-Complaints-To: dscoggin@cne-odin.gsfc.nasa.gov NNTP-Posting-Date: 11 Jan 2002 17:25:02 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Xref: archiver1.google.com comp.lang.ada:18782 Date: 2002-01-11T17:25:02+00:00 List-Id: lutz@iks-jena.de (Lutz Donnerhacke) writes: > I'm looking for a design glue to build something like this: > > I have an several (at least two) interfaces with must be implemented > by the end user (compiler should require implementation). All of them > build a free(!) depedency tree. The simplest one is: > > A -> B B is an extended A and C is an extended A. > | | D combines both extensions (requiring both). > v v > C -> D > > There are (generic) packages requiring special interfaces. I need more information about why C and B need to be independent types. Perhaps you can just do: A -> BC -> D Basically, you've drawn a diagram that can't be implmented in Ada, and asked how to implement it. 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. -- -- Stephe