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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED.8dY8omnix++EB5/QBRk4Sw.user.gioia.aioe.org!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: decomposing large packages Date: Wed, 08 Jan 2020 16:45:02 +0000 Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: 8dY8omnix++EB5/QBRk4Sw.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (darwin) Cancel-Lock: sha1:9hhan/pGT/sjzgXDMjCA+lknRg8= X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader01.eternal-september.org comp.lang.ada:57806 Date: 2020-01-08T16:45:02+00:00 List-Id: mario.blunk.gplus@gmail.com writes: > Now procedure n must be visible from inside package P. How can I > accomplish that ? I played with child units but did not get what I > wanted. The parent P unit must see the procedures and functions of the > child units P.S1, P.S2, ... but the compiler complains that procedure > n is not defined for type thing in P. P's body can see P.S1: package P.S1 is procedure N (Value : Thing) is null; -- save typing :-) end P.S1; with P.S1; package body P is procedure M (Value : Thing) is begin S1.N (Value); end M; end P;