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: Ole-Hjalmar Kristensen Subject: Re: Ada OO Mechanism Date: 1999/05/25 Message-ID: #1/1 X-Deja-AN: 481828323 Sender: ohk@maestro.clustra.com 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> X-Complaints-To: abuse@telia.no X-Trace: news.telia.no 927623021 195.204.160.194 (Tue, 25 May 1999 11:03:41 CEST) Organization: Telia Internet Public Access NNTP-Posting-Date: Tue, 25 May 1999 11:03:41 CEST Newsgroups: comp.lang.ada Date: 1999-05-25T00:00:00+00:00 List-Id: David Starner writes: > bob wrote: > > > > In article <3749E9EC.2842436A@aasaa.ofe.org>, David says... > > > > > > > >Think of vectors and the dot product. C++ forces you to view one vector > > >as significant (a becomes "this" inside dot function, it's called > > >a.dot(b)), even though in a dot b, a and b are equal significance - dot > > >product is a symmetric function. Ada makes them of equal importnatce in > > >the dot function body and call. > > > > Are sure you are not talking about Java (which does not have user defined > > operators) ? > Yes. I was discussing a.dot(b) vs. dot(a,b), not user defined operators. > > What makes you think you cannot implement dot(a,b) in C++? -- E pluribus Unix