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, LOTS_OF_MONEY,MSGID_RANDY 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: Robert Dewar Subject: Re: "with"ing package Standard Date: 2000/05/17 Message-ID: <8ftsoa$ms2$1@nnrp1.deja.com>#1/1 X-Deja-AN: 624464611 References: X-Http-Proxy: 1.0 x40.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Wed May 17 10:36:59 2000 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; I) Date: 2000-05-17T00:00:00+00:00 List-Id: In article , "Ken Garlington" wrote: > 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; This is legal, but only if you have declared a package called Standard, with a child package called ASCII. In pragmatic terms, your program is doubly wrong. First, you can't with Standard itself, since all library units are child units of Standard. A with of Standard, means you are trying to with Standard.Standard. Second, ASCII is a subpackage, not a child package of standard and you cannot WITH a subpackage. Sent via Deja.com http://www.deja.com/ Before you buy.