comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <jrcarter@acm.org>
Subject: Re: Using renaming declarations to make private subprograms visible
Date: Mon, 27 Aug 2001 05:31:33 GMT
Date: 2001-08-27T05:31:33+00:00	[thread overview]
Message-ID: <3B89DB14.6D368DC7@acm.org> (raw)
In-Reply-To: 87heuv6q90.fsf@chiark.greenend.org.uk

Matthew Woodcraft wrote:
> 
> Jeffrey Carter <jrcarter@acm.org> writes:
> 
> > This compiles with GNAT 3.13p:
> >
> >    function Convert_To_String (Source : Token_Type) return String
> >       renames To_String;
> >
> >    function To_String (Source : Token_Type) return String
> >       renames Convert_To_String;

I was rather surprised that it compiles. Someday I'll have time to check
the ARM and see what it says on the matter.

In the meantime, you probably want to make the full definition of
Token_Type a record with a component of Unbounded_String, and provide a
body for your package.

-- 
Jeff Carter
"You empty-headed animal-food-trough wiper."
Monty Python & the Holy Grail



      parent reply	other threads:[~2001-08-27  5:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-25 13:13 Using renaming declarations to make private subprograms visible Matthew Woodcraft
2001-08-25 18:27 ` Jeffrey Carter
2001-08-26 10:59   ` Matthew Woodcraft
2001-08-26 12:29     ` Marc A. Criley
2001-08-27  5:31     ` Jeffrey Carter [this message]
replies disabled

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