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: "John" Subject: Re: overloading "=" (equal sign) Date: 1999/06/09 Message-ID: <7jmsgt$pqs$1@bgtnsc02.worldnet.att.net>#1/1 X-Deja-AN: 487692377 References: <7jhq7l$66c$1@bgtnsc03.worldnet.att.net> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc02.worldnet.att.net 928970077 26460 12.77.193.51 (9 Jun 1999 23:14:37 GMT) Organization: AT&T WorldNet Services NNTP-Posting-Date: 9 Jun 1999 23:14:37 GMT Newsgroups: comp.lang.ada Date: 1999-06-09T23:14:37+00:00 List-Id: I think Keith is right since I'm using VADS Ada 83, for multi-thread. programming. I have a number of packages calling this operator, concurrently. If I make it 'limited private', I will have to go into every single package, and make them limited private types... sounds confusing, but any one has a better solution...to minimize work :-) ? Thanks John Keith Thompson wrote in message ... >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.