comp.lang.ada
 help / color / mirror / Atom feed
From: Marius Amado-Alves <amado.alves@gmail.com>
Subject: Re: Child packages named Ada illegal?
Date: Wed, 31 Oct 2012 10:59:26 -0700 (PDT)
Date: 2012-10-31T10:59:26-07:00	[thread overview]
Message-ID: <32ad2f02-ade6-496d-8cef-85cdd0dd4f88@googlegroups.com> (raw)
In-Reply-To: <4ef3d6d1-94e8-4b9e-8f80-c55da3bff811@googlegroups.com>

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.

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;



  reply	other threads:[~2012-10-31 17:59 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 [this message]
2012-10-31 18:16     ` Adam Beneschan
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