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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,df12ee617a1ef887 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.66.75.100 with SMTP id b4mr11141751paw.35.1351702964844; Wed, 31 Oct 2012 10:02:44 -0700 (PDT) Received: by 10.68.223.98 with SMTP id qt2mr11579686pbc.20.1351702964828; Wed, 31 Oct 2012 10:02:44 -0700 (PDT) Path: 6ni51771pbd.1!nntp.google.com!kt20no27054935pbb.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 31 Oct 2012 10:02:44 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=69.20.190.126; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC NNTP-Posting-Host: 69.20.190.126 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Child packages named Ada illegal? From: Shark8 Injection-Date: Wed, 31 Oct 2012 17:02:44 +0000 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-10-31T10:02:44-07:00 List-Id: It's probably an issue of visibility. Consider: with Ada.Calendar.Time; Procedure Test is package Ada is end Ada; Now : Constant Ada.Calendar.Time:= Ada.Calendar.Clock; Begin null; End Test; In this case the Now declaration is prevented from being valid because the type, Time, resides in the package Calendar which is a child of Ada... but Ada at that point refers to Test.Ada which has no Calendar child package. That te following compiles indicates Ada is not reserved: Procedure Test is Now : Constant Ada.Calendar.Time:= Ada.Calendar.Clock; Begin declare package Ada is end Ada; begin null; end; End Test;