From: "Matthew Heaney" <mheaney@on2.com>
Subject: Re: Ada.Containers.Doubly_Linked_Lists
Date: 5 Feb 2007 07:43:30 -0800
Date: 2007-02-05T07:43:30-08:00 [thread overview]
Message-ID: <1170690209.973403.197760@m58g2000cwm.googlegroups.com> (raw)
In-Reply-To: <87fy9llgnx.fsf@ludovic-brenta.org>
On Feb 4, 5:08 pm, Ludovic Brenta <ludo...@ludovic-brenta.org> wrote:
> If all you want is an unbounded string, just say
>
> package Lists_Of_Unbouned_Strings is
> new Ada.Containers.Doubly_Linked_Lists
> (Element_Type => Ada.Strings.Unbounded.Unbounded_Strings);
>
> L : Lists_Of_Unbouned_Strings.List;
A cleaner way to do this (that avoids having to use type
Unbounded_String) is:
package String_Lists is
new Ada.Containers.Indefinite_Doubly_Linked_Lists (String);
procedure Op (L : String_Lists.List) is
begin
L.Append ("Hello, World!");
end;
next prev parent reply other threads:[~2007-02-05 15:43 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.69.1170624131.18371.comp.lang.ada@ada-france.org>
2007-02-04 21:35 ` Ada.Containers.Doubly_Linked_Lists Niklas Holsti
2007-02-04 22:08 ` Ada.Containers.Doubly_Linked_Lists Ludovic Brenta
2007-02-05 15:43 ` Matthew Heaney [this message]
2007-02-05 4:03 ` Ada.Containers.Doubly_Linked_Lists Jeffrey R. Carter
[not found] <mailman.75.1170828524.18371.comp.lang.ada@ada-france.org>
2007-02-07 7:16 ` Ada.Containers.Doubly_Linked_Lists Niklas Holsti
2007-02-08 13:37 ` Ada.Containers.Doubly_Linked_Lists Stephen Leake
2007-02-07 14:52 Ada.Containers.Doubly_Linked_Lists Carroll, Andrew
2007-02-07 15:06 ` Ada.Containers.Doubly_Linked_Lists Ludovic Brenta
2007-02-07 18:22 ` Ada.Containers.Doubly_Linked_Lists Jeffrey R. Carter
2007-02-08 13:39 ` Ada.Containers.Doubly_Linked_Lists Stephen Leake
2007-02-07 18:19 ` Ada.Containers.Doubly_Linked_Lists Jeffrey R. Carter
2007-02-08 10:44 ` Ada.Containers.Doubly_Linked_Lists Alex R. Mosteo
-- strict thread matches above, loose matches on Subject: below --
2007-02-06 14:40 Ada.Containers.Doubly_Linked_Lists Carroll, Andrew
[not found] <mailman.67.1170570920.18371.comp.lang.ada@ada-france.org>
2007-02-04 8:10 ` Ada.Containers.Doubly_Linked_Lists Niklas Holsti
2007-02-04 21:05 ` Ada.Containers.Doubly_Linked_Lists Jeffrey R. Carter
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox