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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,990196a3d5e5eb5e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-08 20:18:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!news.gtei.net!newscon02.news.prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr11.news.prodigy.com.POSTED!not-for-mail From: "Pat Rogers" Newsgroups: comp.lang.ada References: Subject: Re: Child packages question X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: NNTP-Posting-Host: 208.191.177.131 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr11.news.prodigy.com 1018322258 ST000 208.191.177.131 (Mon, 08 Apr 2002 23:17:38 EDT) NNTP-Posting-Date: Mon, 08 Apr 2002 23:17:38 EDT Organization: Prodigy Internet http://www.prodigy.com X-UserInfo1: SCSGWWCEJKVOBTT^]BCB^]\@PJ_^PBQLGPQRZQMIWIWTEPIB_NVUAH_[BL[\IRKIANGGJBFNJF_DOLSCENSY^U@FRFUEXR@KFXYDBPWBCDQJA@X_DCBHXR[C@\EOKCJLED_SZ@RMWYXYWE_P@\\GOIW^@SYFFSWHFIXMADO@^[ADPRPETLBJ]RDGENSKQQZN Date: Tue, 09 Apr 2002 03:17:38 GMT Xref: archiver1.google.com comp.lang.ada:22249 Date: 2002-04-09T03:17:38+00:00 List-Id: "James Ross" wrote in message news:fug4bukpc28gaqh1sci8m9ql2k1oa54ms5@4ax.com... > I have been holding off on asking because I thought I might figure it > out myself. I only have one Ada 95 book (I guess I oughta buy more) > and it is not clear on this issue. As for looking on the net, I have > browsed, but not extensively. > > Is it possible to control accessibility / visibility of packages using > the child mechanism? > > For example; Car and Car.Engine -- I want the user to be able to "use" > Car but not Car.Engine. The user could call Car.Accelerate_Mph, but > only the Car package could call Car.Engine.Pump_More_Gas. > > Am I all wet here and that is NOT what child packages is all about? > It appears that Child packages may be just a way of organizing closely > related functionality and expanding the namespace. Thanks for any > insights, advice, flames, etc... You should definitely have a look at the Rationale, plus it's free so no need to go buy another Ada book, although I don't think one can have too many! :-)