comp.lang.ada
 help / color / mirror / Atom feed
From: "Jean-Pierre Rosen" <rosen.adalog@wanadoo.fr>
Subject: Re: Why both "with" and "use"?
Date: 1999/02/16
Date: 1999-02-16T00:00:00+00:00	[thread overview]
Message-ID: <7abv9k$631$1@platane.wanadoo.fr> (raw)
In-Reply-To: 1103_919091637@DZOG-CHEN

Ed Falis a �crit dans le message <1103_919091637@DZOG-CHEN>...
>On Mon, 15 Feb 1999 10:14:39 +0100, "Jean-Pierre Rosen"
<rosen.adalog@wanadoo.fr> wrote:
>
>> Nope. Import is equivalent to a "use" clause (makes directly
visible),
>> but is in no way required to get accessibility.
>> You can use anything without any "import" if you use expanded
names.
>> (which implies that it is almost impossible to know which modules
are
>> required by a given module).
>
>Unless you're using a modern IDE, like Visual Age for Java, an Eiffel
or Smalltalk IDE, or ObjectAda (and I believe GNAT Ada mode in Emacs?)
>
>The point being, where should the tradeoff be between clutter in the
code and tool support?  How much does it make sense to mechanize vs
doing a lot of
>bookkeeping in the source code itself?
>
>After using a variety of the tools above in the last year or so, I'm
finding I don't miss fully-qualified names and context clauses in
environments that don't use them.  In
>fact, it's a relief not having to deal with them as when using Ada
bindings to large API sets like the JDK.
>
I agree with you (I'm a known supporter of the use clause), but I
think you misunderstood my remark.

I was stating that in Java, the whole world is "withed" (and this can
include modules on a server on an island in the Pacific).
To know what is really used, import clauses are not sufficient, you
also need to check all fully qualified names. And if you rewrote your
own dynamic loader, I don't see how you can know what is really used !
(BTW, this implies that configuration management in Java is a
world-wide issue !!)
I doubt ObjectAda provides this feature, since (fortunately) we have
"with" clauses in Ada !
---------------------------------------------------------
           J-P. Rosen (Rosen.Adalog@wanadoo.fr)
Visit Adalog's web site at http://perso.wanadoo.fr/adalog






  reply	other threads:[~1999-02-16  0:00 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-02-13  0:00 Why both "with" and "use"? Mike Silva
1999-02-13  0:00 ` Pat Rogers
1999-02-13  0:00   ` bill
1999-02-13  0:00     ` Matthew Heaney
1999-02-13  0:00     ` Pat Rogers
1999-02-13  0:00       ` Matthew Heaney
1999-02-13  0:00         ` bill
1999-02-14  0:00         ` Pat Rogers
1999-02-14  0:00           ` Bob Collins
1999-02-14  0:00             ` Pat Rogers
1999-02-16  0:00         ` Samuel Mize
1999-02-15  0:00     ` Jean-Pierre Rosen
1999-02-15  0:00       ` Ed Falis
1999-02-16  0:00         ` Jean-Pierre Rosen [this message]
1999-02-13  0:00 ` Corey Minyard
1999-02-13  0:00   ` Matthew Heaney
1999-02-13  0:00     ` bill
1999-02-14  0:00       ` dewar
1999-02-14  0:00       ` dewar
1999-02-14  0:00       ` Matthew Heaney
1999-02-13  0:00     ` Tom Moran
1999-02-14  0:00       ` Matthew Heaney
1999-02-16  0:00     ` Samuel Mize
1999-02-17  0:00       ` Matthew Heaney
1999-02-17  0:00       ` Jean-Pierre Rosen
1999-02-18  0:00         ` dennison
1999-02-18  0:00           ` robert_dewar
1999-02-19  0:00             ` dennison
1999-02-19  0:00             ` Robert I. Eachus
1999-02-19  0:00               ` Brian Hanson
1999-02-19  0:00                 ` robert_dewar
1999-02-19  0:00               ` robert_dewar
1999-02-23  0:00                 ` Robert I. Eachus
1999-02-19  0:00             ` bourguet
1999-02-19  0:00               ` robert_dewar
1999-02-19  0:00           ` Matthew Heaney
1999-02-19  0:00             ` dennison
1999-02-19  0:00               ` robert_dewar
1999-02-19  0:00                 ` Ada multiple string personalities. why so many? mike
1999-02-19  0:00                   ` robert_dewar
1999-02-19  0:00                   ` Tom Moran
1999-02-19  0:00                     ` Mike Silva
1999-02-22  0:00                       ` Brian Hanson
1999-02-19  0:00                 ` Why both "with" and "use"? dennison
1999-02-19  0:00                   ` robert_dewar
1999-02-18  0:00         ` robert_dewar
1999-02-18  0:00           ` Jean-Pierre Rosen
1999-02-18  0:00             ` robert_dewar
1999-02-19  0:00               ` Jean-Pierre Rosen
1999-02-17  0:00       ` dennison
1999-02-17  0:00         ` Samuel Mize
1999-02-17  0:00         ` Nick Roberts
1999-02-17  0:00       ` Jean-Pierre Rosen
1999-02-13  0:00   ` mike
1999-02-15  0:00 ` Jean-Pierre Rosen
replies disabled

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