comp.lang.ada
 help / color / mirror / Atom feed
* Scope of variables in Ada.
@ 1986-03-02 20:03 Rick Wessman
  0 siblings, 0 replies; only message in thread
From: Rick Wessman @ 1986-03-02 20:03 UTC (permalink / raw)



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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1986-03-02 20:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1986-03-02 20:03 Scope of variables in Ada Rick Wessman

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