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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,703c4f68db81387d X-Google-Thread: 109fba,703c4f68db81387d X-Google-Thread: 115aec,703c4f68db81387d X-Google-Thread: f43e6,703c4f68db81387d X-Google-Attributes: gid103376,gid109fba,gid115aec,gidf43e6,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Wes Groleau Newsgroups: comp.lang.ada,comp.lang.c++,comp.realtime,comp.software-eng Subject: Re: Teaching new tricks to an old dog (C++ -->Ada) Date: Wed, 23 Mar 2005 22:15:24 -0500 Organization: Ain't no organization here! Message-ID: <3aepldF5nu8a5U1@individual.net> References: <4229bad9$0$1019$afc38c87@news.optusnet.com.au> <1110032222.447846.167060@g14g2000cwa.googlegroups.com> <871xau9nlh.fsf@insalien.org> <3SjWd.103128$Vf.3969241@news000.worldonline.dk> <87r7iu85lf.fsf@insalien.org> <1110052142.832650@athnrd02> <1110284070.410136.205090@o13g2000cwo.googlegroups.com> <395uqaF5rhu2mU1@individual.net> <1110329098.642196@athnrd02> <1110361741.551255@athnrd02> <422edaec$0$26554$9b4e6d93@newsread4.arcor-online.net> <1111464133.508323@athnrd02> <1111508368.393411.6450@z14g2000cwz.googlegroups.com> <1111522653.164049@athnrd02> <9Gi0e.815$FN4.52@newssvr21.news.prodigy.com> <3aenojF67lvh9U1@individual.net> <1111632898.684805@athnrd02> Reply-To: groleau+news@freeshell.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net hRv4Tg+sVb6PFrkGvolj3AenMrHIagg2xKec6tYfcDAAf/91ab User-Agent: Mozilla Thunderbird 1.0 (Macintosh/20041206) X-Accept-Language: en-us, en In-Reply-To: <1111632898.684805@athnrd02> Xref: g2news1.google.com comp.lang.ada:9881 comp.lang.c++:46983 comp.realtime:1666 comp.software-eng:5272 Date: 2005-03-23T22:15:24-05:00 List-Id: Ioannis Vranos wrote: > Wes Groleau wrote: > >> That is the approach perl takes to multiple inheritance. At least >> I think so--I haven't finished studying it. What does C++ or Eiffel >> do when multiple inheritance creates two meanings for the same name? > > What do you mean by two meanings? Class Wagon has method Draw. Class Picture has method Draw. If you multiply inherit to make Class Picture_Of_A_Wagon, what does the method Draw do? This was one of the arguments against having multiple inheritance. But I think it's a silly argument. One could just as logically argue that the "use" clause should not exist because two packages might have Draw subprograms. Or that overloading should not be allowed because it's possible to write something ambiguous. Ada's answer for the former is that if and only if the situation _actually_ arises, neither of the choices is visible. For the latter, the code just won't compile. -- Wes Groleau "There ain't nothin' in this world that's worth being a snot over." -- Larry Wall