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,aae01e0853bff01c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-16 04:02:36 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!newsread2.news.atl.earthlink.net.POSTED!not-for-mail Sender: mheaney@MHEANEYX200 Newsgroups: comp.lang.ada Subject: Re: Should MI be supported (was: Can MI be supported?) References: From: Matthew Heaney Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 16 Sep 2003 11:02:36 GMT NNTP-Posting-Host: 65.110.133.134 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.news.atl.earthlink.net 1063710156 65.110.133.134 (Tue, 16 Sep 2003 07:02:36 EDT) NNTP-Posting-Date: Tue, 16 Sep 2003 07:02:36 EDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.lang.ada:42568 Date: 2003-09-16T11:02:36+00:00 List-Id: Lionel.DRAGHI@fr.thalesgroup.com writes: > | -----Message d'origine----- > | De: Matthew Heaney [mailto:matthewjheaney@earthlink.net] > ... > | > | In my experience multiple views are more useful than mixins, but YMMV. > | > OK, it depends probably on design habits. > > To translate Hyman example, did you use multiple views to stick with > his code, or because it's your "natural" choice? Both. The multiple views code is exactly the code a C++ compiler would generate for you. Bob Eachus showed how to use generic mixins to translate Hyman's example into Ada95, but the classes in the C++ example didn't strike me as being proper "mixin" classes. Usually it's pretty obvious when a class is a mixin. So can you use generic mixins to effect MI in Ada95? Probably, yes. Did I think Bob's translation was very natural? Not really, no.