comp.lang.ada
 help / color / mirror / Atom feed
From: Shark8 <onewingedshark@gmail.com>
Subject: Re: Child packages named Ada illegal?
Date: Wed, 31 Oct 2012 12:39:32 -0700 (PDT)
Date: 2012-10-31T12:39:32-07:00	[thread overview]
Message-ID: <3ae76ee5-9fb3-473c-a9fa-78f64b1596de@googlegroups.com> (raw)
In-Reply-To: <aa35c2a8-6350-4d32-bb20-dc8a207234a2@googlegroups.com>

> 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;

One option would be to put package renaming inside the AA or Languages package; thus:

with Ada.Characters;
Package AA.Language is
...
package Internal_Characters Renames Ada.Characters;
End AA.Language;

would allow you to refer to Ada.Characters via the Internal_Characters name.



  reply	other threads:[~2012-10-31 19:39 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
2012-10-31 18:41       ` Marius Amado-Alves
2012-10-31 19:39         ` Shark8 [this message]
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