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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,df12ee617a1ef887 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.224.189.16 with SMTP id dc16mr18559096qab.0.1351762052461; Thu, 01 Nov 2012 02:27:32 -0700 (PDT) Received: by 10.52.71.38 with SMTP id r6mr7286477vdu.12.1351762052433; Thu, 01 Nov 2012 02:27:32 -0700 (PDT) Path: gf5ni7629245qab.0!nntp.google.com!c7no1687151qap.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 1 Nov 2012 02:27:32 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=91.7.52.135; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf NNTP-Posting-Host: 91.7.52.135 References: <4ef3d6d1-94e8-4b9e-8f80-c55da3bff811@googlegroups.com> <32ad2f02-ade6-496d-8cef-85cdd0dd4f88@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <3d72dab1-239c-4ca8-a7b2-8c55bfbcd24e@googlegroups.com> Subject: Re: Child packages named Ada illegal? From: AdaMagica Injection-Date: Thu, 01 Nov 2012 09:27:32 +0000 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-11-01T02:27:32-07:00 List-Id: On Wednesday, October 31, 2012 7:41:12 PM UTC+1, Marius Amado-Alves wrote: > I had boobed with the packages file names with all the renaming and copying. And I was writing "with Standard.Ada...." GNAT does not allow that. But we can with Ada.Characters and use Standard.Ada.Characters. GNAT does allow this, but then Standard is a package that you defined like so: package Standard is .... end Standard; This is of course very bad because it hides the name of the predefined package Standard. Thus, if you haven't defined such a package Standard, GNAT refused a with clause beginning with Standard. (Visibility rules in context clauses are a bit different from the rest of source code.)