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: David Starner Subject: Re: Ada OO Mechanism Date: 1999/05/24 Message-ID: <3749E9EC.2842436A@aasaa.ofe.org>#1/1 X-Deja-AN: 481736157 Content-Transfer-Encoding: 7bit References: <7i05aq$rgl$1@news.orbitworld.net> <7i17gj$1u1k@news2.newsguy.com> <7icgkg$k4q$1@nnrp1.deja.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc03.worldnet.att.net 927598381 14836 208.255.134.34 (25 May 1999 02:13:01 GMT) Organization: AT&T WorldNet Services Mime-Version: 1.0 NNTP-Posting-Date: 25 May 1999 02:13:01 GMT Newsgroups: comp.lang.ada Date: 1999-05-25T02:13:01+00:00 List-Id: Hyman Rosen wrote: > > Robert Dewar writes: > > Well obviously the case of extending an algebra that implements > > symmetrical binary operators is a case more easily handled in > > Ada than in C, I assume a specific example is not needed here? > > Actually, I would like a specific example - I don't understand > "an algebra that implements symmetrical binary operators" or > why it's easier in Ada. I'm not being difficult here - I really > just don't understand the meaning of the quoted phrase, so a > bit of actual code would go a long way to clarify things. 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.