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!news1.google.com!news4.google.com!news.glorb.com!feeder.xsnews.nl!216.196.110.148.MISMATCH!border1.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.astraweb.com!newsrouter-eu.astraweb.com!feeder.news-service.com!skynet.be!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Compiling separates with GPS GPL version (Ada 2005 i think) Date: Fri, 03 Mar 2006 06:20:27 +0000 Organization: Pushface Message-ID: References: <1141216674.749938.132650@j33g2000cwa.googlegroups.com> <3f682$4405ad47$45491254$21922@KNOLOGY.NET> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1141366822 26280 62.49.19.209 (3 Mar 2006 06:20:22 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Fri, 3 Mar 2006 06:20:22 +0000 (UTC) Cancel-Lock: sha1:AzV05c4BFqpn0luU6maF1c9KDH4= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news1.google.com comp.lang.ada:3251 Date: 2006-03-03T06:20:27+00:00 List-Id: "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. (a) my ColdFrame (http://coldframe.sf.net/) generates code from a UML model; it generates subprogram, task and protected type implementations as separates, so that I don't have to worry about preserving your code when I recreate the generated stuff. (b) I find separates handy for eg unit tests, where there's a set of test cases each of which is quite large (has a number of test procedures); I've implemented each test case as a package with a separate body. I agree with Marc that you need a good reason for using separates (if nothing else, because of the increased number of files which need CM!)