comp.lang.ada
 help / color / mirror / Atom feed
From: rrw@ccice1.UUCP (Rick Wessman)
Subject: Scope of variables in Ada.
Date: Sun, 2-Mar-86 15:03:08 EST	[thread overview]
Date: Sun Mar  2 15:03:08 1986
Message-ID: <382@ccice1.UUCP> (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

                 reply	other threads:[~1986-03-02 20:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

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