comp.lang.ada
 help / color / mirror / Atom feed
From: steve.folly@rdel.co.uk (Steve Folly)
Subject: Re: "with"ing package Standard
Date: 2000/05/17
Date: 2000-05-17T12:34:59+00:00	[thread overview]
Message-ID: <39228d4b.72648613@news.rrds.co.uk> (raw)
In-Reply-To: q_lU4.13918$wb7.1292608@news.flash.net

On Wed, 17 May 2000 00:47:18 GMT, "Ken Garlington" <Ken.Garlington@computer.org>
did clatter that keyboard and type:

>Should I be able to "with" package Standard and/or its children, e.g.
>
>with Ada.Text_IO, Standard.ASCII;
>procedure Test_Return is
>begin
>  Ada.Text_IO.Put_Line("The position of ASCII.CR is " &
>    Integer'Image(Character'Pos(ASCII.CR)));
>end Test_Return;
>
>

In short - No.

All library level units are implicitly child packages of Standard anyway, so all
declarations will be visible.

Besides, Ascii is not a child package of Standard - it is defined in the LRM
(Annex A.1) as a nested package (albeit obsolescent in Ada95 now).

Chances are your compiler wont find a spec called Standard to be withed anyway.
In my experience the Rational Apex compiler includes the source for Standard but
the file is called standard_.1.ada so it wont let you 'with' it.

Hope that helps.

Steve Folly.
mailto:steve.folly@rdel.co.uk





  parent reply	other threads:[~2000-05-17  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-17  0:00 "with"ing package Standard Ken Garlington
2000-05-17  0:00 ` Robert A Duff
2000-05-17  0:00 ` Steve Folly [this message]
2000-05-17  0:00 ` Robert Dewar
replies disabled

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