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!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: Multiple procedures in the same adb file? Date: Sun, 11 Jan 2015 23:38:34 +0200 Organization: Tidorum Ltd Message-ID: References: <5fc3a42d-f922-4e34-ab30-59613b980fb6@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net CSvXG8H3kclqpeRvpa+8pAjuSURxDU8xQIsbL3s50emLu6uLBW Cancel-Lock: sha1:eGuVhYTXpydFcsZRIVlgfPll540= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 In-Reply-To: Xref: news.eternal-september.org comp.lang.ada:24540 Date: 2015-01-11T23:38:34+02:00 List-Id: On 15-01-11 21:51 , Robert A Duff wrote: > It is unwise to have procedures outside of packages Why "unwise"? I agree it is unusual, but I find it is sometimes useful, in particular to have subprograms which are children of packages but are their own compilation units. In a layered architecture, such subprograms are sort of in a layer between the higher layer that contains the declaration of the parent package, and the lower layer that contains the body of that package. In language-lawyer terms, perhaps such subprograms are not really "outside of packages", because child units are in some sense "inside" their parents, but the child subprograms are not "inside" any package in terms of source-code files. -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .