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: bob Subject: Re: Ada OO Mechanism Date: 1999/05/24 Message-ID: <7id2eo$fag@drn.newsguy.com>#1/1 X-Deja-AN: 481754097 References: <7i05aq$rgl$1@news.orbitworld.net> <7i17gj$1u1k@news2.newsguy.com> <7icgkg$k4q$1@nnrp1.deja.com> <3749E9EC.2842436A@aasaa.ofe.org> Organization: Newsguy News Service [http://www.newsguy.com] Newsgroups: comp.lang.ada Date: 1999-05-24T00:00:00+00:00 List-Id: 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) ? You have to do the above in Java 'a.dot(b)' but in C++, (unless '.' is one of those few things that are not allowed to be redefined), I can write 'a.b' just fine, why not? Bob