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,FREEMAIL_FROM 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 06:57:31 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!cyclone1.gnilink.net!spamfinder.gnilink.net!nwrddc02.gnilink.net.POSTED!53ab2750!not-for-mail From: Hyman Rosen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.1b) Gecko/20020721 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Multiple interface inheritance workaround in Ada 95 / Ada 0x to satisfy a Java language advocate? References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Tue, 30 Jul 2002 13:57:31 GMT NNTP-Posting-Host: 162.83.249.90 X-Complaints-To: abuse@verizon.net X-Trace: nwrddc02.gnilink.net 1028037451 162.83.249.90 (Tue, 30 Jul 2002 09:57:31 EDT) NNTP-Posting-Date: Tue, 30 Jul 2002 09:57:31 EDT Xref: archiver1.google.com comp.lang.ada:27482 Date: 2002-07-30T13:57:31+00:00 List-Id: Jean-Pierre Rosen wrote: > It provides a design pattern for providing all the functionnality of Java interfaces Including cross-casting? That is, in Java (or C++), if I have class C implements I1, I2 and I have an I1 reference, I can try casting the I1 to an I2, and if the reference is actually to a C object, the cast works. The attempts to simulate MI in Ada by using access discriminants don't handle this, as far as I know.