comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Visibility problems with package instantiations.....
Date: Thu, 4 Dec 2003 20:58:31 -0600
Date: 2003-12-04T20:58:31-06:00	[thread overview]
Message-ID: <vsvt5efh5rfae1@corp.supernews.com> (raw)
In-Reply-To: mailman.11.1070584255.31149.comp.lang.ada@ada-france.org

"Stephen Leake" <stephen_leake@acm.org> wrote in message
news:mailman.11.1070584255.31149.comp.lang.ada@ada-france.org...
> "Randy Brukardt" <randy@rrsoftware.com> writes:
>
> > "Stephen Leake" <stephen_leake@acm.org> wrote in message
> > news:mailman.8.1070543384.31149.comp.lang.ada@ada-france.org...
> > > > Then, do not you feel that packing everything in one directory is
> > > > similar to packing all packages in one huge all_stuff.ada file?
> > >
> > > Since the Ada compiler treats compilation units in one file much
> > > differently than compilation units in separate files, but cares not at
> > > all about what directories things are in, these are very different
issues.
> >
> > That's a mis-feature of a particular Ada implementation, one that
follows
> > the "letter" of the standard but not the spirit. So far as I know, all
other
> > Ada compilers directly support compiling files containing multiple
units.
>
> 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. 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. 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. :-)

                   Randy.






  reply	other threads:[~2003-12-05  2:58 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 [this message]
2003-12-05 14:04                               ` Stephen Leake
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