comp.lang.ada
 help / color / mirror / Atom feed
From: AdaMagica <christ-usch.grein@t-online.de>
Subject: Re: Problem implementing Iterators
Date: Tue, 27 Jan 2015 08:24:13 -0800 (PST)
Date: 2015-01-27T08:24:13-08:00	[thread overview]
Message-ID: <21e0e529-a516-4e22-a6a5-68b212f22577@googlegroups.com> (raw)
In-Reply-To: <9ceb847e-d064-47e7-aa11-7707b63d4308@googlegroups.com>

>    package GL_String is
>      new Double_Linked_Lists_Generic (Element_Type    => Name_Type,
>                                       Display_Element => Display_String );
> L1 : GL_String.List ;
> 
>    GL_String.Display (L1); <-- error

Try
     GL_String.Display (L1'Access);

That's what the error message tells you:

> expected an access type with designated private type "List" defined at double_linked_lists_generic.ads:7, instance at line 23 
> found private type "List" defined at double_linked_lists_generic.ads:7, instance at line 23 

  reply	other threads:[~2015-01-27 16:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-27 13:54 Problem implementing Iterators Laurent
2015-01-27 16:24 ` AdaMagica [this message]
2015-01-27 17:26   ` Laurent
2015-01-27 17:55     ` Björn Lundin
2015-01-27 18:06       ` Laurent
2015-01-27 18:43         ` Björn Lundin
2015-01-27 20:58           ` Jeffrey Carter
2015-01-28 12:20             ` Björn Lundin
2015-01-28 16:42     ` AdaMagica
2015-01-28 20:14       ` Laurent
replies disabled

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