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,7112e553a3bbd8d7 X-Google-Attributes: gid103376,public From: stt@houdini.camb.inmet.com (Tucker Taft) Subject: Re: Q re static deferred constants Date: 1997/07/17 Message-ID: #1/1 X-Deja-AN: 257421965 Sender: news@inmet.camb.inmet.com (USENET news) X-Nntp-Posting-Host: houdini.camb.inmet.com References: <33CDB52B.25FE@bix.com> Organization: Intermetrics, Inc. Newsgroups: comp.lang.ada Date: 1997-07-17T00:00:00+00:00 List-Id: Tom Moran (tmoran@bix.com) wrote: : Given: : package p is : 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. -- -Tucker Taft stt@inmet.com http://www.inmet.com/~stt/ Intermetrics, Inc. Burlington, MA USA