[net.lang.ada] Scope of variables in Ada.

rrw@ccice1.UUCP (Rick Wessman) (03/02/86)

I am somewhat confused about the scope of variables in Ada. I am
attempting to implement a graphics package which uses some variables
which are global to the package, but which I do not want the user to
see. How can I do this?

The package is composed of several subpackages, some of which have
to share data with others, such as list pointers, arrays, etc.
Do I have to declare these variables in the main package? Or can I
declare them in their respective packages and then refer to them
using "use" clauses?

I guess that this problem can be compared to the use of "extern" in
C.

Any help would be greatly appreciated.


			Rick Wessman
			seismo!rochester!ccice5!ccice1!rrw