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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8ffd9ca0013db6a7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-10-21 19:50:23 PST Path: supernews.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.stanford.edu!xfer10.netnews.com!netnews.com!europa.netcrusader.net!63.211.125.72!cyclone2.usenetserver.com!news-out.usenetserver.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread2.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <39F255E7.38933FCC@acm.org> From: Jeff Carter X-Mailer: Mozilla 4.7 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Redefined "=" = generic disaster? References: <39F13ED9.1EE@li.net> <39F1C092.87D4135E@acm.org> <39F1DCFD.3276@li.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sun, 22 Oct 2000 02:50:22 GMT NNTP-Posting-Host: 63.178.180.75 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.prod.itd.earthlink.net 972183022 63.178.180.75 (Sat, 21 Oct 2000 19:50:22 PDT) NNTP-Posting-Date: Sat, 21 Oct 2000 19:50:22 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: supernews.google.com comp.lang.ada:1470 Date: 2000-10-22T02:50:22+00:00 List-Id: Vincent Marciante wrote: > Ugh! So _are_ you saying that the Ada 83 code was defective wrt. Ada > 83? In Ada 83, you could not redefine "=" for any type that could be used to instantiate the generic, so if you wrote "=" in the generic, it meant you wanted the predefined "=" for the type. This is still the case in Ada if you do not explicitly import "=". If, in Ada 83, you wanted some other behavior than the predefined "=", you still had to import it: with function Equal (Left : T; Right : T) return Boolean; The only real change in Ada is that now you can use the infix "=" to represent user-defined equality, while in Ada 83 you had to use something less intuitive. In either language, you get the predefined "=" if you don't import something else, and have to import something else if you don't want the predefined behavior. -- Jeff Carter "Go and boil your bottom." Monty Python & the Holy Grail