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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,53ca16c587912bce X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: Source files organisation using gnat Date: 1997/07/01 Message-ID: #1/1 X-Deja-AN: 253867809 References: <19970630185901.OAA27670@ladder02.news.aol.com> <5p9jci$eb9@top.mitre.org> Organization: New York University Keywords: configuration control, gnat, organize files, batch Newsgroups: comp.lang.ada Date: 1997-07-01T00:00:00+00:00 List-Id: Michael Brenner says <> First, the idea that "configuration management" is present in the Ada language at all is pretty thin, as previously discused in detail on CLA. Second, the idea that this CM relies on having multiple compilation units per file is even thinner: (a) The Ada language has never required multiple compilation units per file. In fact it has nothing to say at all about files and source representation issues. (b) Most Ada style guidelines, including AQ&S, advise in any case the style of one compilation unit per file (to do otherwise underrmines the intent of the independent compialtion design in Ada). Third, it is perfectly easy to set up appropriate scripts to deal with multiple compilation units per file if that is what you really want. Error messages and debugging information can refer to the original file in this case. We do this e.g. with the ACVC suite, but very rarely otherwise, since our style guidelines, like AQ&S, require one unit per file. Finally, the idea that you cannot have souces in one set of directories and objects in another is completely wrong. This is a normal setup used by us and by many others for a long long time. Robert Dewar Ada Core Technologies P.S. it is true that the use of a classical Ada 83 library system gives some kind of very thin CM-related help, but that has nothing at all to do with multiple units per file. If you want to duplicate this semantics with GNAT it is pretty easy to do so (Jean-Pierre Rosen has a little set of scripts that duplicate the effect of an Ada 83 library, it is pretty easy to do). But in practice this is not of much interest, because it makes better sense to design precisely the setup of directories and "library" handling that you want. Most GNAT users do not want something that duplicates Ada 83 semantics (including for examle the requirement that compilations be done in the "right" order).