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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,dc92e67e9f6fd6eb,start X-Google-Attributes: gid103376,public From: mab@dst17.wdl.loral.com (Mark A Biggar) Subject: Re: Scope of variables in package ?? Date: 1996/06/27 Message-ID: <4qu7nd$h59@wdl1.wdl.loral.com>#1/1 X-Deja-AN: 162379132 references: <31D1A979.103B@vzcorp.com> organization: Loral Western Development Labs newsgroups: comp.lang.ada Date: 1996-06-27T00:00:00+00:00 List-Id: In article <31D1A979.103B@vzcorp.com> "Sandeep V. Kharkar" writes: >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 ?? No it still sees both. A separate unit is compiled just as if it were textually embedded in the package body at the place of the separate declaration and thus can see everything in the body before that point and the whole of the spec. -- Mark Biggar mab@wdl.lmco.com