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: a07f3367d7,d87fe6752812f07a X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!usenet01.sei.cmu.edu!elk.ncren.net!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: GNAT on WinXP: System.OS_Lib.Spawn raises Program_Error Date: Mon, 04 May 2009 09:32:25 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <50d832b4-140d-4029-8d7c-9397115160ba@u8g2000yqn.googlegroups.com> <923b28dd-46ee-40cb-b13e-5f8860405f22@r36g2000vbr.googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1241443946 24435 192.74.137.71 (4 May 2009 13:32:26 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Mon, 4 May 2009 13:32:26 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:2J8BGRfqJLVnb48rE6T7f6RzuLU= Xref: g2news2.google.com comp.lang.ada:5680 Date: 2009-05-04T09:32:25-04:00 List-Id: sjw writes: > $ gnatmake -f -gnatwaL test > gcc -c -gnatwaL test.adb > test.adb:7:03: warning: "Program_Name" is not modified, could be > declared constant > gnatbind -x test.ali > gnatlink test.ali > gnatlink: warning: executable name "test" may conflict with shell > command > > So no warning about implementation-defined units there (I have seen > them, though). That's a bug. GNAT should warn on "with System.OS_Lib;", but not warn on "with GNAT.OS_Lib;". The idea is that if you mention GNAT., you _know_ you are using a GNAT-specific package. The purpose of these renamings is to avoid namespace pollution. You could have your own user-defined package called GNAT -- perhaps it was written in Ada 83 days, before GNAT even existed. Not likely, but GNAT is a perfectly legal name for a user-defined package. So we don't want the Ada runtimes to "with GNAT.OS_Lib;" -- instead, they "with System.OS_Lib;". - Bob