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,f47e0c6e2e5fd00d X-Google-Attributes: gid103376,public From: Harald Schmidt Subject: Re: Function name problem Date: 2000/01/16 Message-ID: #1/1 X-Deja-AN: 573476641 Content-Transfer-Encoding: 7bit References: <85qecu$24r$1@nnrp1.dej a.com> <01qg4.3200$%Y3.193028@newsread2.prod.itd.earthlink.net> Content-Type: text/plain; charset="US-ASCII" X-Complaints-To: abuse@de.uu.net Organization: Customer of UUNET Deutschland GmbH, Dortmund, Germany Mime-Version: 1.0 User-Agent: Microsoft Outlook Express Macintosh Edition - 5.0 (1513) NNTP-Posting-Date: 16 Jan 2000 21:05:36 GMT Newsgroups: comp.lang.ada Date: 2000-01-16T21:05:36+00:00 List-Id: in article 01qg4.3200$%Y3.193028@newsread2.prod.itd.earthlink.net, Matthew Heaney at matthew_heaney@acm.org wrote on 16.01.2000 21:40: > In article , Harald Schmidt > wrote: > >> But can someone >> explain why this restriction exists? > > The operator symbol "=" to mean equality has a long history, dating to > 1577, when it was used by Robert Recorde: > > "Today, Recorde's =, the only symbol he introduced, is universally > embraced. Equality is one of our most important concepts, and it > deserves a unique symbol. The use of = for assignment in Fortran has > only caused confusion, as has the use of = for assignment and == for > equality in C." > > Quoted from p. 16 of > A Logical Approach to Discrete Math > Gries, Schneider > > > The use of the == operator in C to mean equality is a flaw in the design > of that language. > > Not providing an "==" operator in Ada is a deliberate feature of the > language, and is therefore not a restriction at all. Were it allowed, > "==" would only vitiate the language, just as it did in C. > ...my intenstion was not to implement a functional operator equivalent to C/C++. My primary business is Smalltalk, and I was trying to implement the equal method "=", means equality of any attribute of two given objects. The second method "==" (basis for this discussion) is a identity method comparing the identity of two given objects. Harald