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,d516a6b61d50c7ae X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.megapath.net!news.megapath.net.POSTED!not-for-mail NNTP-Posting-Date: Fri, 03 Mar 2006 16:19:11 -0600 From: "Randy Brukardt" Newsgroups: comp.lang.ada References: <1141216674.749938.132650@j33g2000cwa.googlegroups.com> <3f682$4405ad47$45491254$21922@KNOLOGY.NET> Subject: Re: Compiling separates with GPS GPL version (Ada 2005 i think) Date: Fri, 3 Mar 2006 16:24:01 -0600 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: NNTP-Posting-Host: 64.32.209.38 X-Trace: sv3-EymZ+4uAh3ebhmAVOjOC6ZW5fXziuTQ1FwYaGWk4pdlRVqCTAoABwtPSb5kYSDUrRaBWEZ1KV/VKb9n!OXeNWmJlqp5I6uKCJLvVMO9emUB61/079imXrRL2wOWN7wFlJUIxPBxXLUWRqv9bxQvfqO12YlDY!55/UJhI1OYrcSg== X-Complaints-To: abuse@megapath.net X-DMCA-Complaints-To: abuse@megapath.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:3259 Date: 2006-03-03T16:24:01-06:00 List-Id: "Simon Wright" wrote in message news:m2fym06od0.fsf@grendel.local... > "Marc A. Criley" writes: > > > So, you ask, why even bother having subunits? Precisely! :-) If > > you're using a GNAT compiler, there isn't much point, which is one > > of the reasons why I stopped using them a long time ago. ... (some good reasons for using separates) ... (c) a separate can have its own with clauses, so this provides a way to reduce the visibility of rarely used components. (After all, a good rule to follow is to limit everything to the smallest scope where it is needed.) (d) Most compilers really do compile these things separately. In a large unit with frequent changes, this can save a lot of time. (Although that was much more true when PC's were 4 MHZ, not the 4 GHZ that they are today. On the IBM PC, the average compilation with Janus/Ada took over 10 seconds, and long units could take much longer...) Randy.