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,ebbca47c76670bb2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-25 15:05:48 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!nntp4.savvis.net!uunet!dfw.uu.net!ash.uu.net!world!news From: Robert A Duff Subject: Re: Reemergence of predefined equality operator... Sender: news@world.std.com (Mr Usenet Himself) Message-ID: Date: Sun, 25 Aug 2002 22:04:07 GMT References: <3D488F3D.6186@earthlink.net> <5ee5b646.0208010406.6d9ae2e3@posting.google.com> <3D6917C6.3B8A@earthlink.net> NNTP-Posting-Host: shell01.theworld.com Organization: The World Public Access UNIX, Brookline, MA X-Newsreader: Gnus v5.7/Emacs 20.7 Xref: archiver1.google.com comp.lang.ada:28397 Date: 2002-08-25T22:04:07+00:00 List-Id: Vincent Marciante writes: > Only for limitted types (except for the trick that has been > mentioned occasionally) right? By the way, can you describe > the trick or refer me to more info about it? The trick is to have a generic formal limited private type, and derive from that, and define "=" on the derived type. Then instantiate with a non-limited type. I believe this trick was first noticed by John Goodenough. - Bob