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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e5eb8ca5dcea2827 X-Google-Attributes: gid103376,public From: Florian Weimer Subject: Re: Ada OO Mechanism Date: 1999/05/25 Message-ID: #1/1 X-Deja-AN: 482007489 References: <7i05aq$rgl$1@news.orbitworld.net> <7i17gj$1u1k@news2.newsguy.com> <7icgkg$k4q$1@nnrp1.deja.com> <3749E9EC.2842436A@aasaa.ofe.org> <7id2eo$fag@drn.newsguy.com> <3749FF7D.F17CE16A@aasaa.ofe.org> Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@cygnus.stuttgart.netsurf.de X-Trace: deneb.cygnus.stuttgart.netsurf.de 927653038 1247 192.168.0.1 (25 May 1999 17:23:58 GMT) Organization: Penguin on board Mime-Version: 1.0 User-Agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) XEmacs/21.1 (20 Minutes to Nikko) NNTP-Posting-Date: 25 May 1999 17:23:58 GMT Newsgroups: comp.lang.ada Date: 1999-05-25T17:23:58+00:00 List-Id: Ole-Hjalmar Kristensen writes: > What makes you think you cannot implement dot(a,b) in C++? In C++, you won't get late binding (aka dynamic dispatching, aka virtual methods) this way. In Ada, you will. You could provide some kind of wrapper function to obtain the same effect in C++, but I think the Ada solution to this particular problem (i.e. no need for a wrapper function) is clearly more elegant.