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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,bd28f16b863c1f57 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews1.google.com!not-for-mail From: jpwoodruff@irisinternet.net (John Woodruff) Newsgroups: comp.lang.ada Subject: Re: function "and" Date: 5 Oct 2004 15:38:00 -0700 Organization: http://groups.google.com Message-ID: <34defe4d.0410051438.24190de2@posting.google.com> References: NNTP-Posting-Host: 66.81.115.153 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1097015880 24701 127.0.0.1 (5 Oct 2004 22:38:00 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 5 Oct 2004 22:38:00 +0000 (UTC) Xref: g2news1.google.com comp.lang.ada:4760 Date: 2004-10-05T15:38:00-07:00 List-Id: "Rick Santa-Cruz" wrote in message news:... > Hi, > > if I wanna overload the operator "and" then why I have to use quotes? > Are there other cases when I have to use quotes? Hi Rick I've been reading your queries and benefiting from the discussions, so I'll throw in an attempt at this one: "And" is an operator which can be overloaded. As such it can (unlike other functions that are not operators) occur in an infix expression. Operators are denoted by a few special symbols, or by reserved words, thus are recognized in a compiler's parser. The operators that behave like this are *, **, /, +, -, and, or, xor, mod, rem, &, and the relationals (> and its friends). You can overload any of these (the declaration needs to qoute the operator name) but you can't define new operators. John