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,80ae596d36288e8a X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!87.79.20.105.MISMATCH!news.netcologne.de!ramfeed1.netcologne.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Fri, 27 May 2011 09:54:50 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Why no socket package in the standard ? References: <9cb23235-8824-43f4-92aa-d2e8d10e7d8c@ct4g2000vbb.googlegroups.com> <4ddb5bd7$0$302$14726298@news.sunsite.dk> <4ddb81b8$0$7628$9b4e6d93@newsspool1.arcor-online.net> <87aaeban8a.fsf@ludovic-brenta.org> <8762ozahib.fsf@ludovic-brenta.org> <871uznaczz.fsf@ludovic-brenta.org> <015e3d6a-772a-41f8-a057-49c8b7bd80e1@w21g2000yqm.googlegroups.com> <4MednVYCXuUZQEHQRVn_vwA@giganews.com> <6d913128-402e-47cc-ae3e-273b65198507@n10g2000yqf.googlegroups.com> <5acc868f-6f77-4a8d-be43-b9c926eb9c08@h9g2000yqk.googlegroups.com> <65dd1431-c6b2-42bd-bbab-27e1ad61a6c4@32g2000vbe.googlegroups.com> <4ddebc11$0$6554$9b4e6d93@newsspool4.arcor-online.net> <87hb8h6s3m.fsf@ludovic-brenta.org> In-Reply-To: <87hb8h6s3m.fsf@ludovic-brenta.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4ddf58ca$0$7610$9b4e6d93@newsspool1.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 27 May 2011 09:54:51 CEST NNTP-Posting-Host: c9bede96.newsspool1.arcor-online.net X-Trace: DXC=4bSDV3WoX]efF8a^:6>b7eic==]BZ:afn4Fo<]lROoRa<`=YMgDjhgb[lUC1AFhcncPCY\c7>ejVhd8\2A`cmW@bh@[]a>:K90c X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:20479 Date: 2011-05-27T09:54:51+02:00 List-Id: On 5/26/11 11:59 PM, Ludovic Brenta wrote: > Georg Bauhaus writes on comp.lang.ada: >> Make (or similar) is still good for building Ada programs, in >> particular, portable Ada programs (between compilers), and its >> associated documentation and the tests. > > Make is a wrapper around shell scripts (the rules in Makefiles are shell > scripts). A rule system is more than a wrapper just like an Ada compiler's Find_Dependencies routine is more than a recursive ls(1) (assuming the compiler does use just file based search). Plus, some make programs don't assume a sh(1) or anything available withUnix. > you do not need Make to figure dependencies or order of > compilation out. A project is not fully built when just the Ada part is built. How would I have the customer run XSL transformation for doc generation using, as you suggest, sh(1) on Windows(TM)? Will GPRClean remove intermediate files in non-Ada parts like make would? (I don't know about this; the GPR docs are extensive, and seem to concentrate on building Ada programs.) >> For example, gnatmake is not enough if your program is this: $ cat Hello.ada procedure Hello; -- offer greetings to the world with Ada.Text_IO; procedure Hello is begin Ada.Text_IO.Put_Line("Hello, World!"); end Hello; $ Gnatmake cannot translate the Ada program above. It has more than one separately compilable unit: $ gnatmake -gnatf -gnatv Hello.ada gcc -c -gnatf -gnatv -x ada hello.ada GNAT GPL 2010 (20100603) Copyright 1992-2010, Free Software Foundation, Inc. Compiling: hello.ada (source file time stamp: 2011-05-27 07:07:02) 4. with Ada.Text_IO; | >>> end of file expected, file can have only one compilation unit 8 lines: 1 error gnatmake: "hello.ada" compilation error > why not, gprmake. The PATH issues in GPR* have again been mentioned. Yes, they can be solved, and they are documented. Just like: Yes, one can write range checks in C, and the secret C standard + compiler documentation + machine documentation will say how. Besides, $ grep -i gprmake /opt/GNAT2010/share/doc/gnat/txt/* $ I have yet to find the section detailing the "added" part from the following promising sentence, quoted from gnat_ugn (GPL 2010): "Tools like `gnatmake' only know about Ada, while other tools like `gprbuild' know about many more languages such as C, C++, Fortran, assembly and others can be added dynamically."