From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE, MSGID_SHORT autolearn=no autolearn_force=no version=3.4.4 Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!rochester!ritcv!ccice5!ccice1!rrw From: rrw@ccice1.UUCP (Rick Wessman) Newsgroups: net.lang.ada Subject: Scope of variables in Ada. Message-ID: <382@ccice1.UUCP> Date: Sun, 2-Mar-86 15:03:08 EST Article-I.D.: ccice1.382 Posted: Sun Mar 2 15:03:08 1986 Date-Received: Tue, 4-Mar-86 04:09:20 EST Organization: CCI Central Engineering, Rochester, NY Keywords: scope,variables List-Id: 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