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-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!postnews.google.com!g14g2000cwa.googlegroups.com!not-for-mail From: "Jerry Coffin" Newsgroups: comp.lang.ada,comp.lang.c++,comp.realtime,comp.software-eng Subject: Re: Teaching new tricks to an old dog (C++ -->Ada) Date: 23 Mar 2005 22:01:01 -0800 Organization: http://groups.google.com Message-ID: <1111641597.372280.215350@g14g2000cwa.googlegroups.com> References: <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> <3aepldF5nu8a5U1@individual.net> <1111635015.746020@athnrd02> NNTP-Posting-Host: 68.64.130.76 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1111644064 19127 127.0.0.1 (24 Mar 2005 06:01:04 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 24 Mar 2005 06:01:04 +0000 (UTC) User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: g14g2000cwa.googlegroups.com; posting-host=68.64.130.76; posting-account=mZiOqwwAAAC5YZsJDHJLeReHGPXV5ENp Xref: g2news1.google.com comp.lang.ada:9892 comp.lang.c++:47005 comp.realtime:1671 comp.software-eng:5277 Date: 2005-03-23T22:01:01-08:00 List-Id: Ioannis Vranos wrote: > Wes Groleau wrote: > > > 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? > > In C++ you will get an error message until you define a newer version > of Draw for Picture_Of_A_Wagon class. Not so -- until or unless you _call_ the function (without qualifying its name) there's no ambiguity. When/if ambiguity does arise, you can resolve it without adding a function to the derived class. -- Later, Jerry. The universe is a figment of its own imagination.