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,a85dd10bdbdb69d4 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-12-12 09:02:50 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn14feed!wn12feed!worldnet.att.net!207.217.77.102!newsfeed2.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3DF8C169.9020309@acm.org> From: Jeffrey Carter User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Giving a package specification access to the private types of another package References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 12 Dec 2002 17:01:41 GMT NNTP-Posting-Host: 63.184.16.236 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 1039712501 63.184.16.236 (Thu, 12 Dec 2002 09:01:41 PST) NNTP-Posting-Date: Thu, 12 Dec 2002 09:01:41 PST Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.lang.ada:31749 Date: 2002-12-12T17:01:41+00:00 List-Id: Grein, Christoph wrote: >>Perfect? That's a bit strong. It's a good design, but as given, I think >>that putting Foobar in B (perhaps with "is separate") is as good. > > I beg to differ. For this tiny example, you're right. But IIRC, the OP said that > his package B.A was quite big and held a big part of the implementation stuff of > B. Then child packages are the "perfect" design because you can split one big > body (B) is several smaller children dedicated to specific subproblems. My recollection is that Foobar was large and A existed simply to make Foobar separate from B, in which case putting Foobar in B and making it separate still seems just as good. If it's A that's large and Foobar is only part of it, then a private package is probably better. -- Jeff Carter "If a sperm is wasted, God gets quite irate." Monty Python's the Meaning of Life