TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy


Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Tom Moran <[log in to unmask]>
Mon, 18 Dec 2000 13:36:45 -0800
text/plain (17 lines)
> in the calling package render this array
> available to any package
> being called by the calling package or program?
  This is confusing.  Packages don't call, and aren't called.
Procedures and functions do that.  And visibility is not something a
caller passes on to a callee.
If you have
Package One is ... end One;
Package Two is ... end Two;
and you want to change them so they both have access to X and P in
Package Database is
   X : Boolean;
   procedure P;
then add "with Database;" to the "with" list of each of One and Two and
each will be able to refer to the boolean Database.X and the procedure