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!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!fi.sn.net!newsfeed2.fi.sn.net!news.song.fi!not-for-mail Date: Sat, 23 Feb 2008 09:31:45 +0200 From: Niklas Holsti User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20060628 Debian/1.7.8-1sarge7.1 X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Separate Compilation in Programming Languages References: <47bf11df$0$14990$4f793bc4@news.tdc.fi> <47bfc5d4$0$21890$4f793bc4@news.tdc.fi> In-Reply-To: <47bfc5d4$0$21890$4f793bc4@news.tdc.fi> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <47bfc7b5$0$21890$4f793bc4@news.tdc.fi> Organization: TDC Internet Services NNTP-Posting-Host: laku61.adsl.netsonic.fi X-Trace: 1203750837 news.tdc.fi 21890 81.17.205.61:32791 X-Complaints-To: abuse@tdcnet.fi Xref: g2news1.google.com comp.lang.ada:20014 Date: 2008-02-23T09:31:45+02:00 List-Id: Replying to my own post in order to add a remark: Niklas Holsti wrote: > adaworks@sbcglobal.net wrote: > >> "Niklas Holsti" wrote in message >> news:47bf11df$0$14990$4f793bc4@news.tdc.fi... >> >>> adaworks@sbcglobal.net wrote: >>> >>> >>>> Do you still use the "is separate" feature in a package body? >>> >>> >>> I never use it. My subprograms are rarely long enough to make it >>> useful (given that there is no compilation-speed advantage under >>> GNAT), and I seldom use nested packages. >>> >> >> Thanks. The issue is not compilation speed, nor even size of the >> source code. Rather, the real benefit of Ada's separate compilation >> model is the management of dependencies. > > > I understand this point -- in theory. In practice, although I do worry > about dependencies in general, I haven't seen cases where "is separate" > would have been very useful, in my opinion. What I often do instead is to divide the original package, which contains parts with very different dependencies, into a parent and one or more children, according to some logical criterion from the clients' point of view. I find that this often also sorts out the dependencies in the bodies, reducing the advantage of splitting the bodies into "is separate" parts. -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .