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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,cf7a58e8e674126b X-Google-Attributes: gid103376,public From: steve.folly@rdel.co.uk (Steve Folly) Subject: Re: "with"ing package Standard Date: 2000/05/17 Message-ID: <39228d4b.72648613@news.rrds.co.uk>#1/1 X-Deja-AN: 624508837 References: X-Complaints-To: postmaster@rdel.co.uk X-Trace: rdel.co.uk 958566899 20287 172.16.115.146 (17 May 2000 12:34:59 GMT) Organization: RDEL NNTP-Posting-Date: 17 May 2000 12:34:59 GMT Newsgroups: comp.lang.ada Date: 2000-05-17T12:34:59+00:00 List-Id: On Wed, 17 May 2000 00:47:18 GMT, "Ken Garlington" 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