comp.lang.ada
 help / color / mirror / Atom feed
From: Jerry <lanceboyle@qwest.net>
Subject: Re: How to compile Barnes' examples from his book using GNAT
Date: Wed, 9 Dec 2015 19:26:20 -0800 (PST)
Date: 2015-12-09T19:26:20-08:00	[thread overview]
Message-ID: <4b452d31-f0f6-4e65-ab87-cc250edd32be@googlegroups.com> (raw)
In-Reply-To: <87wpsqmwgj.fsf@adaheads.sparre-andersen.dk>

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

  reply	other threads:[~2015-12-10  3:26 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-06 10:49 How to compile Barnes' examples from his book using GNAT Jerry
2015-12-06 11:24 ` Brian Drummond
2015-12-06 18:17   ` Jeffrey R. Carter
2015-12-06 21:21     ` Pascal Obry
2015-12-06 22:33       ` Jeffrey R. Carter
2015-12-08  2:01         ` Randy Brukardt
2015-12-07  9:01   ` Jerry
2015-12-07  9:36     ` Jacob Sparre Andersen
2015-12-10  3:26       ` Jerry [this message]
2015-12-10  8:55         ` J-P. Rosen
2015-12-10 12:34           ` G.B.
2015-12-07 14:21     ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox