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!news4.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!attbi_s22.POSTED!53ab2750!not-for-mail Message-ID: <47BF49D0.2030009@acm.nospam.org> From: "Jeffrey R. Carter" User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Separate Compilation in Programming Languages References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s22 1203718608 12.201.97.213 (Fri, 22 Feb 2008 22:16:48 GMT) NNTP-Posting-Date: Fri, 22 Feb 2008 22:16:48 GMT Organization: AT&T ASP.att.net Date: Fri, 22 Feb 2008 22:16:48 GMT Xref: g2news1.google.com comp.lang.ada:19998 Date: 2008-02-22T22:16:48+00: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? For my own programs, I find it helpful as a way to manage > dependencies > when there are a lot of library units. Also, UML does not support a capability > for modeling > separate compilation, and that is a bit frustrating when trying to model a > fine-grained design. I find the separation of spec and body very useful, especially for programming in groups by setting detailed design decisions in code-crete as pkg specs. I find many of the features of Ada packages useful in representing the implementation of a good design. I primarily use body stubs to reduce the size of large pkgs. -- Jeff Carter "Help! Help! I'm being repressed!" Monty Python & the Holy Grail 67