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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7112e553a3bbd8d7 X-Google-Attributes: gid103376,public From: Tom Moran Subject: Re: Q re static deferred constants Date: 1997/07/19 Message-ID: <33D11D53.44EA@bix.com>#1/1 X-Deja-AN: 257743233 References: <33CDB52B.25FE@bix.com> Organization: InterNex Information Services 1-800-595-3333 Reply-To: tmoran@bix.com Newsgroups: comp.lang.ada Date: 1997-07-19T00:00:00+00:00 List-Id: Tucker Taft said: > : type T is new Integer; > : x : constant T; > : private > : x : constant T := 1; > > : Is p.x static? ie, can another package use p.x for a 'when' in a case > : statement? > > If the full definition of X is not visible, then X is not static. > So inside the package body for P, and those of its children, X is static, > but outside these places is not. So given x : constant T; y : constant T := 2; private x : constant T := 1; then y is everywhere static but x is static only in P or its children?