comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: GNAT on WinXP: System.OS_Lib.Spawn raises Program_Error
Date: Mon, 04 May 2009 09:32:25 -0400
Date: 2009-05-04T09:32:25-04:00	[thread overview]
Message-ID: <wcc7i0x8046.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: e5e47c6b-ed87-47ee-84e7-aa602524019c@p4g2000vba.googlegroups.com

sjw <simon.j.wright@mac.com> 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.<something>, 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



  parent reply	other threads:[~2009-05-04 13:32 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-01 21:39 GNAT on WinXP: System.OS_Lib.Spawn raises Program_Error daniel.wengelin
2009-05-01 21:58 ` Jeffrey R. Carter
2009-05-02  4:16 ` anon
2009-05-02 15:59   ` Martin
2009-05-02 20:39     ` anon
2009-05-02 22:01       ` Ed Falis
2009-05-02 23:20         ` anon
2009-05-03 13:24           ` Ed Falis
2009-05-04  0:22             ` anon
2009-05-04  1:21               ` Ed Falis
2009-05-03 10:33         ` sjw
2009-05-03 13:27           ` Ed Falis
2009-05-04 13:32           ` Robert A Duff [this message]
2009-05-03  9:42       ` Martin
2009-05-05  0:04       ` Randy Brukardt
2009-05-05  2:43         ` anon
2009-05-05  8:06           ` Martin
2009-05-05 23:40             ` Randy Brukardt
2009-05-02 20:31   ` daniel.wengelin
2009-05-03  2:22     ` Hang
2009-05-02  6:28 ` Example of Spawn call anon
2009-05-02 15:50   ` Hang
2009-05-02 18:28     ` anon
2009-05-02 19:38     ` sjw
2009-05-02 19:47       ` sjw
2009-05-02 20:59         ` anon
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox