comp.lang.ada
 help / color / mirror / Atom feed
From: bill <bill@newsguy.com>
Subject: Re: Why both "with" and "use"?
Date: 1999/02/13
Date: 1999-02-13T00:00:00+00:00	[thread overview]
Message-ID: <7a4j3h$64e@drn.newsguy.com> (raw)
In-Reply-To: 7a4f85$rh1$1@remarQ.com

In article <7a4f85$rh1$1@remarQ.com>, "Pat says...
>
 
..good stuff snipped..

thanks for the nice review.

Just to compare this to Java, in Java, almost everyone does something
like this:

import package_name;*

this imports, and at the same time, makes visible all class in package
and all public entities in all classes.

One can import one specific class from the package:

import package_name.class_name

And this also combines importing and making directly visible all public
entities in the class. 

Also, in Java a package seems to have different purpose than with Ada. In
Java a package is a collection of classes. In OO Ada, a package usually
contains one tagged type. or is this not the normal practice?

I feel that the Ada package and the "with" and the "use" give better
control of things. Not only that, the fact that in Java, one can
compile a program that uses some class, but becuase classes
are loaded at run time, it is possible to load the old byte code of
compiled against class if the class path is wrong, or if the new byte
code for the compiled class was not jarred correctly.  I fee the whole
development and software packaging with Java is a pain and can lead to
errors. In classical development (as in C/C++/Ada etc..) these kinds
of problems do not happen as much (even with dynamic shared libraries,
there is a check done against version numbers of libraries at load/run
time to make sure the correct library code is loaded).

Bill




  reply	other threads:[~1999-02-13  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 [this message]
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-13  0:00     ` Matthew Heaney
1999-02-15  0:00     ` Jean-Pierre Rosen
1999-02-15  0:00       ` Ed Falis
1999-02-16  0:00         ` Jean-Pierre Rosen
1999-02-13  0:00 ` Corey Minyard
1999-02-13  0:00   ` mike
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       ` 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-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             ` bourguet
1999-02-19  0:00               ` robert_dewar
1999-02-19  0:00             ` dennison
1999-02-19  0:00             ` Robert I. Eachus
1999-02-19  0:00               ` robert_dewar
1999-02-23  0:00                 ` Robert I. Eachus
1999-02-19  0:00               ` Brian Hanson
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                 ` 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-18  0:00         ` Why both "with" and "use"? 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-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