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!nntp-feed.chiark.greenend.org.uk!ewrotcd!reality.xs3.de!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: How to compile Barnes' examples from his book using GNAT Date: Mon, 07 Dec 2015 10:36:44 +0100 Organization: JSA Research & Innovation Message-ID: <87wpsqmwgj.fsf@adaheads.sparre-andersen.dk> References: <2c68ffdd-f55e-4c68-84f1-fbe0f83a0b57@googlegroups.com> <5ba1035b-7ffa-4ea8-b9cd-fde589b99904@googlegroups.com> NNTP-Posting-Host: 109.57.60.120.mobile.3.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: loke.gir.dk 1449481005 933 109.57.60.120 (7 Dec 2015 09:36:45 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Mon, 7 Dec 2015 09:36:45 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:0H1EhzaOnAgbQv618JSJFzYrsXg= Xref: news.eternal-september.org comp.lang.ada:28679 Date: 2015-12-07T10:36:44+01:00 List-Id: Jerry writes: > Is there a preferred way that GNAT users handle this? Do they make > multiple package specs and bodies in one file then let gnatchop handle > it, possibly hiding the mess in another directory, or is it preferred > to write the many separate spec and body files from the start? The norm seems to be to put specifications and bodies in separate files like GNAT wants them. This seems to work with most Ada compilers, and it supports the notion that users of a package doesn't have to look at how it is implemented. Greetings, Jacob -- "Acupuncture: a jab well done."