comp.lang.ada
 help / color / mirror / Atom feed
From: "Dominic D'Apice" <dapiced@sympatico.ca>
Subject: RE: Boolean Operation on pointer (access)
Date: Sat, 26 Oct 2002 21:26:05 -0400
Date: 2002-10-26T21:26:05-04:00	[thread overview]
Message-ID: <mailman.1035681962.10485.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: <wccy98ksn8o.fsf@shell01.TheWorld.com>

Ok then, i use the clause use in my .ada for my package ads, it's
working, 
but i don't understand why i need to put a use clause for only this king
of operator ?

For the rest of my .ada program  i only precede each thing by the .ads
package name 
Ex : package.var := xxx;

Thanks
Dominic

-----Original Message-----
From: comp.lang.ada-admin@ada.eu.org
[mailto:comp.lang.ada-admin@ada.eu.org] On Behalf Of Robert A Duff
Sent: 26 octobre, 2002 21:08
To: comp.lang.ada@ada.eu.org
Subject: Re: Boolean Operation on pointer (access)


"Dominic D'Apice" <dapiced@sympatico.ca> writes:

> if (x /= null) then  --the line where the compiler stop
...
> I got this error :
> 
> gerer_location.ada: Error: line 136 col 23 LRM:8.4(1),
> Binary operator "/=" not directly visible, use clause or conversion
> might be needed 
> 
> The operation "/=" should be permit on pointer, then why i got this 
> error ?

You want a "use type" clause on the pointer type.

Yes, "/=" is allowed on pointers, but this operator is implicitly
declared at a certain place in the program, and you need to make it
directly visible in order to call it.

- Bob
_______________________________________________
comp.lang.ada mailing list
comp.lang.ada@ada.eu.org
http://ada.eu.org/mailman/listinfo/comp.lang.ada




  reply	other threads:[~2002-10-27  1:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-26 23:15 Boolean Operation on pointer (access) Dominic D'Apice
2002-10-27  1:07 ` Robert A Duff
2002-10-27  1:26   ` Dominic D'Apice [this message]
2002-10-27  2:02     ` Robert A Duff
2002-10-27  2:17     ` Jeffrey Carter
replies disabled

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