From: Keith Thompson <kst@cts.com>
Subject: Re: overloading "=" (equal sign)
Date: 1999/06/08
Date: 1999-06-08T22:57:01+00:00 [thread overview]
Message-ID: <yecn1ya47yb.fsf@king.cts.com> (raw)
In-Reply-To: m31zfngt6u.fsf@mheaney.ni.net
Matthew Heaney <matthew_heaney@acm.org> writes:
> On Mon, 7 Jun 1999 21:13:21 -0400, "John" <j.gonzale@worldnet.att.net> 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 <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <http://www.sdsc.edu> <*>
One of the great tragedies of ancient history is that Helen of Troy
lived before the invention of the champagne bottle.
next prev parent reply other threads:[~1999-06-08 0:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-07 0:00 overloading "=" (equal sign) John
1999-06-08 0:00 ` Matthew Heaney
1999-06-08 0:00 ` Keith Thompson [this message]
1999-06-09 0:00 ` John
1999-06-10 0:00 ` Robert Dewar
1999-06-10 0:00 ` Bryce Bardin
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox