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.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a8985ede8fe3d111 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-10-27 03:19:45 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!swidir.switch.ch!epflnews!dinews.epfl.ch!di.epfl.ch!Robb.Nebbe From: Robb.Nebbe@di.epfl.ch (Robb Nebbe) Newsgroups: comp.lang.ada Subject: Re: Child packages Date: 21 Oct 1994 08:48:51 GMT Organization: Ecole Polytechnique Federale de Lausanne Sender: nebbe@lglsun3.epfl.ch (Robb Nebbe) Distribution: world Message-ID: <1994Oct21.084853@di.epfl.ch> References: <1994Oct4.090807@di.epfl.ch> <37kanl$jfd@u.cc.utah.edu> <385thq$kh6@watnews1.watson.ibm.com> NNTP-Posting-Host: lglsun3.epfl.ch Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Date: 1994-10-21T08:48:51+00:00 List-Id: In article <385thq$kh6@watnews1.watson.ibm.com>, ncohen@watson.ibm.com (Norman H. Cohen) |> |> While child packages provide many more advantages than disadvantages, I |> feel we have lost something important from Ada 83--a clearly marked, |> compiler-recognized distinction between those aspects of a module that do |> and do not form a part of its "contract". |> |> -- |> Norman H. Cohen ncohen@watson.ibm.com I have found it very helpful to think of child packages as extensions of the parent package and not as clients of the parent package. If you have a package that needs access to some "private information" then you should extend the package with a child package that specifies the interface to this information. Then make your package a client of the child package. - Robb Nebbe