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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: =?UTF-8?Q?Bj=c3=b6rn_Lundin?= Newsgroups: comp.lang.ada Subject: Re: Trivia: Ada packages are great! Date: Mon, 5 Nov 2018 13:39:18 +0100 Organization: A noiseless patient Spider Message-ID: References: <5af3c4a0-5856-47ec-bb05-0ae9f9bb24ff@googlegroups.com> <98c7d0b5-2262-4246-bb4f-6dde1d59ff6b@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 5 Nov 2018 12:39:19 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="b9d63b6185cfd46e7eff75e950e76007"; logging-data="1382"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19rn21DeBo46nf1hfZ+5HKG" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 Cancel-Lock: sha1:J4iSQ8z6JE6iZHeEz5iLTJ6Bh+I= In-Reply-To: <98c7d0b5-2262-4246-bb4f-6dde1d59ff6b@googlegroups.com> Content-Language: sv-FI Xref: reader02.eternal-september.org comp.lang.ada:54766 Date: 2018-11-05T13:39:18+01:00 List-Id: On 2018-11-05 11:39, Maciej Sobczak wrote: > Interestingly, the feature that allows C++ namespaces to exists in multiple files, makes the code migrations easier, because new definitions can be added to existing namespaces without any need to modify existing files. This also means that new features can be written and tested in an isolated environment, with target namespaces already in mind, and then new files just added to the project. In comparison (and in this context), Ada couples logic and physical designs, which is not always wanted. You can add procedures and function in separate files in Ada too by using the 'separate' keyword. And childpackages often help with hiearachies -- -- Björn