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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: function "and" Date: Wed, 06 Oct 2004 10:18:01 +0200 Organization: AdaCL Message-ID: <1173154.Upbm3t2oAa@linux1.krischik.com> References: Reply-To: krischik@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1097050868 04 15033 k+PmX7H15EI4Nvw 041006 08:21:08 X-Complaints-To: usenet-abuse@t-online.de X-ID: ZeJekZZareN2ZySKobDuMzSVh6myimrwtNM3xGfisGOqQyhBEe-MQF User-Agent: KNode/0.8.0 Xref: g2news1.google.com comp.lang.ada:4779 Date: 2004-10-06T10:18:01+02:00 List-Id: Rick Santa-Cruz wrote: > Hi, > > if I wanna overload the operator "and" then why I have to use quotes? For the same reason you have to write "operator && ()" in C++. Just so that the compiler knows you want to overload the operator and not write a functions named And. Of corse C++ only has only got very few operators using keywords (sizeof, typeof and such like) - and non can be overloaded - soe the operator keyword comes more naturaly then the quote in Ada. > Are there other cases when I have to use quotes? Wherever you would use the keyword operator in C++ - thats when you want to write a userdefined operator. With Regards Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com