From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Visibility issue Date: Sat, 12 Sep 2020 00:36:12 +0200 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <6096c490-7112-415e-978b-fd4c78f28501n@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 11 Sep 2020 22:36:12 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="2ff1a5ee3183ea084fe3f31c1ac4a5f4"; logging-data="16045"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/HTAKsZZF4m7X7HPvwEkFkhHAANQlCEKo=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 Cancel-Lock: sha1:sVabrRMEDLT5cFx2Q44o7ESylyw= In-Reply-To: <6096c490-7112-415e-978b-fd4c78f28501n@googlegroups.com> Content-Language: en-US Xref: reader01.eternal-september.org comp.lang.ada:60116 List-Id: On 9/11/20 10:17 PM, Daniel wrote: > > I was trying to separate the code in two hierarchies packages, one package for an API and other package for internal implementation. > IT's difficult to put the implementing details on the API "fake child" because I will need a lot of dependencies from Internal packages hierarchy. > > It could be possible to use other solution different that put implementing details on API packages? For the visibility you say you want, you have to have your implementation hierarchy be a child hierarchy of your interface hierarchy. It's undoubtedly possible to design such a system so your implementation hierarchy does not need to be a child hierarchy, but where things are declared and what is visible where would be different. -- Jeff Carter "You couldn't catch clap in a brothel, silly English K...niggets." Monty Python & the Holy Grail 19