comp.lang.ada
 help / color / mirror / Atom feed
From: Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
Subject: Re: Using renaming declarations to make private subprograms visib le
Date: 28 Aug 2001 23:42:57 +0100
Date: 2001-08-28T23:42:57+01:00	[thread overview]
Message-ID: <878zg3vma6.fsf@chiark.greenend.org.uk> (raw)
In-Reply-To: mailman.999034905.16641.comp.lang.ada@ada.eu.org

"Beard, Frank" <beardf@spawar.navy.mil> writes:

> Matthew,
> 
> Have you tried fully qualified names, such as:
> 
> private
> 
>    type Token_Type is new Ada.Strings.Unbounded.Unbounded_String;
> 
>    function To_Token (Source : String) return Token_Type
>      renames Ada.Strings.Unbounded.To_Unbounded_String;
> 
>    function To_String (Source : Token_Type) return String
>      renames Ada.Strings.Unbounded.To_String;

But Ada.String.Unbounded.To_String is a function which return an
Ada.Strings.Unbounded.Unbounded_String. The function which I want to
make visible is its implicitly-defined cousin, which returns a Token.

-M-




  reply	other threads:[~2001-08-28 22:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-28 20:19 Using renaming declarations to make private subprograms visib le Beard, Frank
2001-08-28 22:42 ` Matthew Woodcraft [this message]
2001-08-29  4:18   ` DuckE
  -- strict thread matches above, loose matches on Subject: below --
2001-08-29 17:26 Beard, Frank
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox