comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Help: Binary operator "="
Date: 1997/05/21
Date: 1997-05-21T00:00:00+00:00	[thread overview]
Message-ID: <dewar.864220244@merv> (raw)
In-Reply-To: 3381c4ba.quantum@quantum.pc.my


Adrian says

<<The compiler says: Line 467: Binary operator "=" not directly visible, use
 clause
might be needed.>>


The error message seems pretty clear. You are using the operator "=" without
qualifying it, you need to write

   packagename."="(x,y)

If you are allergic to all use clauses, then this is the only solution
(well you can introduce a local renaming so that you only need to do the
qualification once in the usual manner).

For reasons that have never been clear to me, folks who absolutely insist
on dotting stuff in general so that they know where it is don't want to
write dots on ooperators. To help out these folks, the use type clause
is introduced in Ada 95, which allows you to use the operators without
using anything else.






  parent reply	other threads:[~1997-05-21  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-05-20  0:00 Help: Binary operator "=" Adrian B.Y. Hoe
1997-05-21  0:00 ` Jeff Carter
1997-05-21  0:00 ` Robert Dewar [this message]
     [not found]   ` <33932325.6E38@lmtas.lmco.com>
1997-06-07  0:00     ` Robert Dewar
1997-06-08  0:00       ` Ken Garlington
1997-06-10  0:00         ` Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox