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!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: How to compile Barnes' examples from his book using GNAT Date: Mon, 07 Dec 2015 14:21:45 +0000 Organization: A noiseless patient Spider Message-ID: References: <2c68ffdd-f55e-4c68-84f1-fbe0f83a0b57@googlegroups.com> <5ba1035b-7ffa-4ea8-b9cd-fde589b99904@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="6f4ba2ce0f80cf6975f919f4f22c2ad9"; logging-data="10129"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19vzI/1zdpaSfvePiGroQLvmdMjlatgZg0=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:UfD4ZoCdlXL0vpSpOQ0uAsbxtLc= sha1:fn/5lMqmJpHQVwhYKkNAMvzivgk= Xref: news.eternal-september.org comp.lang.ada:28681 Date: 2015-12-07T14:21:45+00: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? If I'm making a brief example, or trying to build someone else's problematic code, I'd put the whole lot in a file .ada. Otherwise, specs/bodies/separates all in files of their own.