TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

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

Print Reply
Sender: "Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
Date: Mon, 18 Dec 2000 13:36:45 -0800
Reply-To: Tom Moran <[log in to unmask]>
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
Organization: Decision Aids
From: Tom Moran <[log in to unmask]>
Parts/Attachments: 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
Database.P

ATOM RSS1 RSS2