comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Boolean Operation on pointer (access)
Date: Sun, 27 Oct 2002 02:02:39 GMT
Date: 2002-10-27T02:02:39+00:00	[thread overview]
Message-ID: <wcc65vohc5c.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: mailman.1035681962.10485.comp.lang.ada@ada.eu.org

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

> 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;

You could say:

    if Package_Name."/="(X, null) then...

but you wouldn't want to.  You want to say:

    if X /= null then...

which is equivalent to:

    if "/="(X, null) then ...

so you need the "use type".  Does that make sense?

- Bob



  reply	other threads:[~2002-10-27  2:02 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
2002-10-27  2:02     ` Robert A Duff [this message]
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