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,35b23727c41f3e62 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-07-30 13:23:09 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!news.tufts.edu!uunet!dca.uu.net!ash.uu.net!world!news From: Robert A Duff Subject: Re: Multiple interface inheritance workaround in Ada 95 / Ada 0x to satisfy a Java language advocate? Sender: news@world.std.com (Mr Usenet Himself) Message-ID: Date: Tue, 30 Jul 2002 20:22:48 GMT References: <1028042914.262359@master.nyc.kbcfp.com> <3D46CE25.5010102@worldnet.att.net> <1028053093.903476@master.nyc.kbcfp.com> NNTP-Posting-Host: shell01.theworld.com Organization: The World Public Access UNIX, Brookline, MA X-Newsreader: Gnus v5.7/Emacs 20.7 Xref: archiver1.google.com comp.lang.ada:27496 Date: 2002-07-30T20:22:48+00:00 List-Id: Hyman Rosen writes: > But it's much simpler in Ada, since there is neither multiple > inheritance nor interfaces. For the test to be potentially true, > either I1 must be a subclass of I2, in which case the test > succeeds immediately, or I2 is a subclass of I1, in which case > we must actually examine item to see whether it inherits from > an I2-derived class. If I1 and I2 are unrelated, the test will > always be false, which is not true for C++ or Java. ^^^^^^^^^^^^^^^ No, it's always illegal (i.e. compile-time error). - Bob