TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Forum View

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

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

Print Reply
Subject:
From:
Tom Moran <[log in to unmask]>
Reply To:
Tom Moran <[log in to unmask]>
Date:
Mon, 18 Dec 2000 13:36:45 -0800
Content-Type:
text/plain
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