From: stt@henning.camb.inmet.com (Tucker Taft)
Subject: Re: Scope of variables in package ??
Date: 1996/06/27
Date: 1996-06-27T00:00:00+00:00 [thread overview]
Message-ID: <DtoI9J.FIr.0.-s@inmet.camb.inmet.com> (raw)
In-Reply-To: 31D1A979.103B@vzcorp.com
Sandeep V. Kharkar (skharkar@vzcorp.com) wrote:
: If a function/procedure is defined as SEPARATE,i.e.,
: implementation outside the PACKAGE BODY, can it still see
: variables defined inside the PACKAGE BODY but
: not in the PACKAGE SPECIFICATION ??
Yes. The "up-level" visibility in a "subunit" (a nested unit whose
body is separately compiled) is based on the location of the
subunit's "stub", the place where the "is separate;" appears
in the parent's body.
See RM95 10.1.3(1,17) and 10.1.4(2).
: ~Sandeep
: skharkar@vzcorp.com
: http://www.cs.usu.edu/students/SandeepKharkar/index.html
-Tucker Taft stt@inmet.com http://www.inmet.com/~stt/
Intermetrics, Inc. Cambridge, MA USA
next parent reply other threads:[~1996-06-27 0:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <31D1A979.103B@vzcorp.com>
1996-06-27 0:00 ` Tucker Taft [this message]
1996-06-27 0:00 ` Scope of variables in package ?? Mark A Biggar
1996-06-28 0:00 ` John Herro
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox