comp.lang.ada
 help / color / mirror / Atom feed
From: jamess1889@aol.com (JamesS1889)
Subject: Re: "use" clauses and Ada 95 OOP
Date: 1996/07/23
Date: 1996-07-23T00:00:00+00:00	[thread overview]
Message-ID: <4t33ro$l4n@newsbf02.news.aol.com> (raw)
In-Reply-To: EACHUS.96Jul19102232@spectre.mitre.org


In article <Duwu74.L3n@world.std.com>, bobduff@world.std.com (Robert A
Duff) writes:

>Your earlier impression was correct.  "Use type" only works for
>(primitive) operators, like "&", "+", etc.  It does not work for
>operations called "func" or whatever.

Then I'm confused about something.  See below.  Meanwhile...

>An earlier version of Ada 9X proposed to make primitive operators
>automatically visible -- sort of as if "use type" were always there by
>magic.  However, this would have been upward incompatible in some rare
>cases.  The "use type" feature was invented as a compromise.

I'm amazed they did think of it - good for them.  But that's not what I
was talking about.

In article <JSA.96Jul22154610@alexandria>, jsa@alexandria (Jon S Anthony)
writes:

>A use_type clause only gives "direct" visibility to primitive _operators_
>of the type: RM 8.4(8).

OK.  So then would someone tell me what the following meant:

In article <EACHUS.96Jul19102232@spectre.mitre.org>,
eachus@spectre.mitre.org (Robert I. Eachus) writes:

>    My rule is to always "use type" dispatching types.  The names you
>no longer have to qualify are the ones where the qualification would
>be misleading.

Did Robert mean what I thought he meant (in which case you are saying he
is wrong), or did he mean something else?

Enquiring minds want to know...

James Squire                                      
mailto:ja_squire@csehp3.mdc.com
MDA Avionics Tools & Processes
McDonnell Douglas Aerospace              http://www.mdc.com
Opinions expressed here are my own and NOT my company's
"Only one Earth Captain has ever survived battle with a Minbari fleet.  He
is behind me.
You are in front of me.  If you value your lives, be somewhere else!"
           -- Delenn, "Severed Dreams"




  reply	other threads:[~1996-07-23  0:00 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-07-17  0:00 "use" clauses and Ada 95 OOP Mitch Gart
1996-07-19  0:00 ` Jon S Anthony
1996-07-19  0:00 ` James A. Squire
1996-07-22  0:00   ` Stephen Schmid
1996-07-23  0:00     ` JamesS1889
1996-07-23  0:00     ` Mitch Gart
1996-07-23  0:00       ` Kevin J. Weise
1996-07-23  0:00       ` Kevin J. Weise
1996-07-23  0:00         ` JamesS1889
1996-07-23  0:00       ` Robert A Duff
1996-07-23  0:00       ` Robert Dewar
1996-07-25  0:00         ` JamesS1889
1996-07-26  0:00           ` Robert A Duff
1996-07-23  0:00     ` Laurent Guerby
1996-07-23  0:00       ` Robert A Duff
1996-07-23  0:00     ` JamesS1889
1996-07-24  0:00     ` Jon S Anthony
1996-07-24  0:00     ` Jon S Anthony
1996-07-19  0:00 ` Robert I. Eachus
1996-07-23  0:00   ` JamesS1889 [this message]
1996-07-23  0:00     ` Robert Dewar
1996-07-24  0:00     ` Robert I. Eachus
1996-07-23  0:00   ` Robert I. Eachus
1996-07-25  0:00     ` JamesS1889
1996-07-24  0:00   ` Jon S Anthony
1996-07-20  0:00 ` James A. Squire
1996-07-21  0:00   ` Robert A Duff
1996-07-22  0:00 ` Jon S Anthony
1996-07-23  0:00 ` Jon S Anthony
replies disabled

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