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!.POSTED!not-for-mail From: G. B. Newsgroups: comp.lang.ada Subject: Re: decomposing large packages Date: Thu, 9 Jan 2020 18:24:52 -0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 9 Jan 2020 18:24:52 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="dc6a68e5ca7b4e5ac0221a5263c1bce5"; logging-data="32183"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19LrQ85PFDxH81Nv/ibBideLC15C1xSP2w=" User-Agent: NewsTap/5.3.4 (iPhone/iPod Touch) Cancel-Lock: sha1:PW64GOm7AGLdN2658q1+SY2t6VA= sha1:Fvw7nnTVRwXe46d/eW8ETIR9K3s= Xref: reader01.eternal-september.org comp.lang.ada:57812 Date: 2020-01-09T18:24:52+00:00 List-Id: Dmitry A. Kazakov wrote: > On 2020-01-09 09:25, mario.blunk.gplus@gmail.com wrote: > >> that solves the problem for the moment. When working with subunits, it >> is not obvious for the newcomer that: >> 1. (...) >> 4. no other procedure or function must exist in P-n.adb . >> >> I wonder why the authors of Ada training books don't point out such things ... > > Because file naming and one compilation unit per source file limitation > are GNAT specific. The GNAT User's Guide is worth reading, for newcomers in particular. File naming defaults in: http://docs.adacore.com/live/wave/gnat_ugn/html/gnat_ugn/gnat_ugn/the_gnat_compilation_model.html#file-naming-topics-and-utilities