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 X-Received: by 10.140.242.10 with SMTP id n10mr2137548qhc.9.1449717980815; Wed, 09 Dec 2015 19:26:20 -0800 (PST) X-Received: by 10.182.28.129 with SMTP id b1mr148389obh.4.1449717980771; Wed, 09 Dec 2015 19:26:20 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!1.eu.feeder.erje.net!feeder.erje.net!2.us.feeder.erje.net!enother.net!enother.net!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!f78no7521254qge.1!news-out.google.com!f6ni18431igq.0!nntp.google.com!mv3no14071743igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 9 Dec 2015 19:26:20 -0800 (PST) In-Reply-To: <87wpsqmwgj.fsf@adaheads.sparre-andersen.dk> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=97.117.194.28; posting-account=x5rpZwoAAABMN2XPwcebPWPkebpwQNJG NNTP-Posting-Host: 97.117.194.28 References: <2c68ffdd-f55e-4c68-84f1-fbe0f83a0b57@googlegroups.com> <5ba1035b-7ffa-4ea8-b9cd-fde589b99904@googlegroups.com> <87wpsqmwgj.fsf@adaheads.sparre-andersen.dk> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4b452d31-f0f6-4e65-ab87-cc250edd32be@googlegroups.com> Subject: Re: How to compile Barnes' examples from his book using GNAT From: Jerry Injection-Date: Thu, 10 Dec 2015 03:26:20 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Received-Bytes: 2178 X-Received-Body-CRC: 1640171162 Xref: news.eternal-september.org comp.lang.ada:28747 Date: 2015-12-09T19:26:20-08:00 List-Id: On Monday, December 7, 2015 at 2:36:45 AM UTC-7, Jacob Sparre Andersen wrote: > 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." It would be nice if it were possible to put multiple specs in one file and multiple bodies in another file thus maintaining interface from implementation but without a proliferation of files. Jerry