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,d10596e187e90822 X-Google-Attributes: gid103376,public From: Matthew Heaney Subject: Re: Private Children Date: 1999/06/23 Message-ID: #1/1 X-Deja-AN: 492787710 References: <7klja3$c0p$1@nnrp1.deja.com> <376E70A5.F77E558D@averstar.com> <376E9EEB.322A3F39@averstar.com> <7kmoe4$o83@dfw-ixnews15.ix.netcom.com> NNTP-Posting-Date: Tue, 22 Jun 1999 20:29:59 PDT Newsgroups: comp.lang.ada Date: 1999-06-23T00:00:00+00:00 List-Id: On 23 Jun 1999 11:54, dale@cs.rmit.edu.au (Dale Stanbrough) wrote: > Your 2nd proposal has the problem that implementation of types > declared in P.Private_Stuff can be seen by any child packages, so you > loose any ability to do hiding of abstractions -within- a hierachy. But that's already the case: package P is type T is tagged private; ... private type T is ...; end P; package P.C1 is ... package P.C2 is ... Every child (C1, C2) has access to the private part of its parent (P). There's no such thing as "hiding within a hierarchy." Child packages were designed not to hide visibility from within the hierarchy. They were designed to /deliberately/ expose the private part to children, and to allow you to easily identify which packages have that private knowledge.