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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable 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-05 06:11:19 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!petbe.visi.com!easynet-quince!easynet.net!teaser.fr!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Visibility problems with package instantiations..... Date: 05 Dec 2003 09:04:34 -0500 Organization: Cuivre, Argent, Or Message-ID: References: <95234e08.0311270742.631b1228@posting.google.com> <349csv0udb5k0kuk0q99d7tm7fh5leuefu@4ax.com> <95234e08.0311280323.7a5bb870@posting.google.com> <95234e08.0311302345.4f9e235b@posting.google.com> NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: melchior.cuivre.fr.eu.org 1070633154 99204 80.67.180.195 (5 Dec 2003 14:05:54 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Fri, 5 Dec 2003 14:05:54 +0000 (UTC) Cc: comp.lang.ada@ada-france.org To: "Randy Brukardt" Return-Path: In-Reply-To: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 X-Virus-Scanned: by amavisd-new-20030616-p5 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Gateway to the comp.lang.ada Usenet newsgroup List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:3153 Date: 2003-12-05T09:04:34-05:00 "Randy Brukardt" writes: > "Stephen Leake" 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