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-Thread: 103376,aea4cc77526f5e4a X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!npeer.de.kpn-eurorings.net!npeer-ng2.kpn.DE!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail From: Dirk Heinrichs Newsgroups: comp.lang.ada Subject: Re: Separate Compilation in Programming Languages Date: Fri, 22 Feb 2008 18:52:46 +0100 Organization: Privat Message-ID: References: NNTP-Posting-Host: p54bba27a.dip0.t-ipconnect.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: online.de 1203702766 14277 84.187.162.122 (22 Feb 2008 17:52:46 GMT) X-Complaints-To: abuse@einsundeins.com NNTP-Posting-Date: Fri, 22 Feb 2008 17:52:46 +0000 (UTC) User-Agent: KNode/0.10.9 Xref: g2news1.google.com comp.lang.ada:19980 Date: 2008-02-22T18:52:46+01:00 List-Id: adaworks@sbcglobal.net wrote: > This morning, after an especially interesting argument about this feature > and, "Why would > anyone want to do such a thing?" style questions, I decided to approach > this > forum. What > is your view of Ada-style separate compilation when compared to that in > other languages? > Do you find it useful in your own practice? Do you still use the "is > separate" feature in > a package body? When put under version control, one can can easily track the development of functions, instead of files as is the case for most projects developed in C/C++, where the entire class is put in one large .cpp file. While it is doable in C/C++ as well, it can't be expressed in the language itself, which means that the compiler has no means of telling wether one .c file logically belongs to another or not. However, in either language it requires a bit of discipline from the developers. Bye... Dirk