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 autolearn=ham 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.73.7 with SMTP id h7mr11274348pav.6.1351707408673; Wed, 31 Oct 2012 11:16:48 -0700 (PDT) Received: by 10.68.225.162 with SMTP id rl2mr1651474pbc.8.1351707408610; Wed, 31 Oct 2012 11:16:48 -0700 (PDT) Path: 6ni51771pbd.1!nntp.google.com!kt20no27129411pbb.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 31 Oct 2012 11:16:48 -0700 (PDT) In-Reply-To: <32ad2f02-ade6-496d-8cef-85cdd0dd4f88@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=66.126.103.122; posting-account=duW0ogkAAABjRdnxgLGXDfna0Gc6XqmQ NNTP-Posting-Host: 66.126.103.122 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: Subject: Re: Child packages named Ada illegal? From: Adam Beneschan Injection-Date: Wed, 31 Oct 2012 18:16:48 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-10-31T11:16:48-07:00 List-Id: On Wednesday, October 31, 2012 10:59:26 AM UTC-7, Marius Amado-Alves wrote: > Thanks. The package is as follows (the entire thing is at sourceforge.net= /projects/aalibrary/). GNAT shouts <> at li= ne "(if Ada...);". The fix is to rename the package AA.Languages.Ada_Langua= ge. The Standard.Ada trick doesn't work. Hmmm ... interesting, it should work. I'm using an earlier version of GNAT= that doesn't support Ada 2012 syntax, so I had to rewrite the function to = try your example. But it worked fine (inside AA.Languages.Ada) when I refe= rred to Standard.Ada.Characters.Handling.Is_Alphanumeric. So maybe this is= a recently introduced bug? -- Adam > with Ada.Characters.Handling; > ... > package body AA.Languages.Ada is > ... > function Non_Alphanum_To_Underscore (From : Character) return Characte= r is > (if Ada.Characters.Handling.Is_Alphanumeric (From) then From else '= _');=20 > ... > end;