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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4200259190b16e16 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-04 19:00:05 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!priapus.visi.com!orange.octanews.net!news.octanews.net!news-out.visi.com!petbe.visi.com!news.tele.dk!news.tele.dk!small.news.tele.dk!oleane.net!oleane!freenix!sn-xit-02!sn-xit-06!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Visibility problems with package instantiations..... Date: Thu, 4 Dec 2003 20:58:31 -0600 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <95234e08.0311270742.631b1228@posting.google.com><349csv0udb5k0kuk0q99d7tm7fh5leuefu@4ax.com><95234e08.0311280323.7a5bb870@posting.google.com><95234e08.0311302345.4f9e235b@posting.google.com> X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:3143 Date: 2003-12-04T20:58:31-06:00 List-Id: "Stephen Leake" wrote in message news:mailman.11.1070584255.31149.comp.lang.ada@ada-france.org... > "Randy Brukardt" writes: > > > "Stephen Leake" 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.