From: "Ed Falis" <falis@verizon.net>
Subject: Re: GNAT on WinXP: System.OS_Lib.Spawn raises Program_Error
Date: Mon, 04 May 2009 01:21:38 GMT
Date: 2009-05-04T01:21:38+00:00 [thread overview]
Message-ID: <op.utdsqbht5afhvo@naropa> (raw)
In-Reply-To: WyqLl.192643$4m1.191533@bgtnsc05-news.ops.worldnet.att.net
On Sun, 03 May 2009 20:22:14 -0400, anon <anon@anon.org> wrote:
> General comments should be taken with a gain of salt. If you check,
> most of
> the GNAT packages and programs, you will see 100s of comments that are
> not
> valid or useful. Like, "Is this correct" or "need comment here". Then
> other
> places where comments could be useful there is only code.
None of us are perfect, eh? There is an ongoing process of improving
comments. The one I quoted is not ambiguous. But you're correct that I
was wrong about the warning being generated in this case.
>
> What is needed is another documentation file, called may be "GNAT
> extension
> to Ada 2005 specification", where the documentation would explain the
> extra
> packages with each package routine, and including the package
> limitations,
> if any.
It's called the GNAT Reference Manual, which does not document
System.OS_Lib as part of the GNAT public library. Generally, it refers to
the source specifications for details.
>
> The following example show that the "System.OS.LIB" could be set as a
> non-portable internal system file that generates warning and forces a
> programmer to use "GNAT.OS_LIB". But in Ada 2005 version, Adacore
> decided not too. Which allows the programmer to choose to use
> "GNAT.OS_LIB" (Ada 95 specs) or "System.OS_LIB" (Ada 2005 specs). Just
> like some programmers choose to use "Text_IO" instead of "Ada.Text_IO",
> or "Unchecked_Conversion" instead of "Ada.Unchecked_Conversion".
The unqualified names of the standard library packages are "deprecated"
but retained for backward compatibility. As far as System.OS_Lib goes,
I'll be asking tomorrow why we allow its use without generating a
warning. Seems like an oversight to me rather than a decision, but as you
point out in your example, this lack of a warning appears to be related to
package renamings.
- Ed
next prev parent reply other threads:[~2009-05-04 1:21 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 [this message]
2009-05-03 10:33 ` sjw
2009-05-03 13:27 ` Ed Falis
2009-05-04 13:32 ` Robert A Duff
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