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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3ad42f911d53327e X-Google-Attributes: gid103376,public From: Magnus Larsson Subject: Re: Object Oreinted Style Date: 2000/03/31 Message-ID: <8c21qm$dbl$1@nnrp1.deja.com>#1/1 X-Deja-AN: 604741302 References: <8bq4hh$psj$1@ssauraac-i-1.production.compuserve.com> X-Http-Proxy: 1.0 x32.deja.com:80 (Squid/1.1.22) for client 194.52.58.137 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Fri Mar 31 11:23:09 2000 GMT X-MyDeja-Info: XMYDJUIDmla_mla Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.61 [en] (X11; I; Linux 2.0.36 i586) Date: 2000-03-31T00:00:00+00:00 List-Id: In article , Dale Stanbrough wrote: [.....] > > Def. child packages "open up" the full view of a parent type declared > in a parent package, and in this regard invite abuse by preventing > total encapsulation. I am by no means an expert in this area, but isn't a "private package" a solution here? like : package Parent is type Base_Type is.... ... end Parent; private package Parent.Child is type Derived_type is new Base_type..... ... end Parent.Child; Or have i completly missed the point here? I thought this construct does exactly this and "closes" any direct access to the child. Magnus > Dale > -- .|, -o---- mla@omicron.se Sent via Deja.com http://www.deja.com/ Before you buy.