From: Adam Beneschan <adam@irvine.com>
Subject: Re: Child packages named Ada illegal?
Date: Wed, 31 Oct 2012 11:16:48 -0700 (PDT)
Date: 2012-10-31T11:16:48-07:00 [thread overview]
Message-ID: <d2df4c08-401c-4a3e-a47d-fb718415c777@googlegroups.com> (raw)
In-Reply-To: <32ad2f02-ade6-496d-8cef-85cdd0dd4f88@googlegroups.com>
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 <<missing "with Ada.Characters;">> at line "(if Ada...);". The fix is to rename the package AA.Languages.Ada_Language. 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 referred 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 Character is
> (if Ada.Characters.Handling.Is_Alphanumeric (From) then From else '_');
> ...
> end;
next prev parent reply other threads:[~2012-10-31 18:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-31 16:47 Child packages named Ada illegal? Marius Amado-Alves
2012-10-31 17:02 ` Shark8
2012-10-31 17:20 ` Adam Beneschan
2012-10-31 17:59 ` Marius Amado-Alves
2012-10-31 18:16 ` Adam Beneschan [this message]
2012-10-31 18:41 ` Marius Amado-Alves
2012-10-31 19:39 ` Shark8
2012-11-01 9:27 ` AdaMagica
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox