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,af59fce29fedcd28 X-Google-Attributes: gid103376,public From: Keith Thompson Subject: Re: overloading "=" (equal sign) Date: 1999/06/08 Message-ID: #1/1 X-Deja-AN: 487268362 References: <7jhq7l$66c$1@bgtnsc03.worldnet.att.net> X-Complaints-To: usenet@nusku.cts.com X-Trace: nusku.cts.com 928882621 26678 198.68.168.21 (8 Jun 1999 22:57:01 GMT) Organization: CTS Network Services NNTP-Posting-Date: 8 Jun 1999 22:57:01 GMT Newsgroups: comp.lang.ada Date: 1999-06-08T22:57:01+00:00 List-Id: Matthew Heaney writes: > On Mon, 7 Jun 1999 21:13:21 -0400, "John" wrote: > > > It looks like the "=" sign when overloaded, it asks for limited type > > parameters only. > > I'm not sure what you mean by this, becuase the equality operator does > NOT have to take limited types as parameters. Perhaps if you send some > code, then we can determine what the problem is. I think Ada 83 had such a restriction. There's a workaround using a generic with a limited private type parameter; perhaps someone else can remember the details. (The existence of the workaround may have been part of the motivation for removing the restriction in Ada 95.) -- Keith Thompson (The_Other_Keith) kst@cts.com San Diego Supercomputer Center <*> One of the great tragedies of ancient history is that Helen of Troy lived before the invention of the champagne bottle.