comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@acm.org>
To: "Randy Brukardt" <randy@rrsoftware.com>
Cc: comp.lang.ada@ada-france.org
Subject: Re: Visibility problems with package instantiations.....
Date: 05 Dec 2003 09:04:34 -0500
Date: 2003-12-05T09:04:34-05:00	[thread overview]
Message-ID: <mailman.16.1070633153.31149.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: <vsvt5efh5rfae1@corp.supernews.com>

"Randy Brukardt" <randy@rrsoftware.com> writes:

> "Stephen Leake" <stephen_leake@acm.org> wrote in message
> news:mailman.11.1070584255.31149.comp.lang.ada@ada-france.org...
> > Well, yes, GNAT refuses to compile a file containing multiple units.
> > But even in other systems, the re-compilation dependencies get
> > confused when there are more than one unit in a file (which is why
> > GNAT refuses to do it); it is that effect I was talking about.
> 
> 'fraid I don't follow. Certainly it is possible to compile more than you
> need to in that way, but if compilation is fast enough, that's not really an
> issue. 

On a "large enough" project, compilation is never "fast enough". This
is exactly the issue. I guess "confused" was too strong a word.
"inefficient" is better.

> If the units are completely out of order, you'll have trouble, but
> that hardly is surprising. But the make tools work (I know ours
> does), and it works well to put a number of specs in the same file.

If you ignore the recompilation inefficiency, yes, this can work well.

> For instance, in Claw, there are a number of packages that we had to
> move in the hierarchy. The spec file then also contains a rename of
> the package to its original name. It would hardly make sense to give
> a one line item its own source file, with all of the configuration
> management/standard comments like copyrights that that entails - the
> result would be pretty large and it would be hard to find the actual
> code. :-)

Yes, that's true. There are special cases on both sides :).

-- 
-- Stephe




  reply	other threads:[~2003-12-05 14:04 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-27 15:42 Visibility problems with package instantiations Petter Fryklund
2003-11-27 16:33 ` Dmitry A. Kazakov
2003-11-28 11:23   ` Petter Fryklund
2003-11-28 13:17     ` Dmitry A. Kazakov
2003-12-01  7:45       ` Petter Fryklund
2003-12-01  8:58         ` Dmitry A. Kazakov
2003-12-01 16:31           ` Stephen Leake
2003-12-02  9:00             ` Dmitry A. Kazakov
2003-12-02 16:20               ` Stephen Leake
2003-12-03  8:37                 ` Dmitry A. Kazakov
2003-12-03 18:09                   ` Stephen Leake
2003-12-04  9:16                     ` Dmitry A. Kazakov
2003-12-04 13:09                       ` Stephen Leake
2003-12-04 14:03                         ` Dmitry A. Kazakov
2003-12-04 19:24                         ` Randy Brukardt
2003-12-05  0:30                           ` Stephen Leake
2003-12-05  2:58                             ` Randy Brukardt
2003-12-05 14:04                               ` Stephen Leake [this message]
2003-12-05 12:14                           ` Jeff C,
2003-12-05 13:13                             ` Arnaud Charlet
2003-12-05 20:52                               ` Randy Brukardt
2003-12-05 21:10                                 ` Simon Wright
2003-12-02 17:07               ` Jeffrey Carter
2003-12-03  8:49                 ` Dmitry A. Kazakov
2003-12-02  4:25         ` Randy Brukardt
replies disabled

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