From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ba2aaa9cb4d25085 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!m58g2000cwm.googlegroups.com!not-for-mail From: "Matthew Heaney" Newsgroups: comp.lang.ada Subject: Re: Ada.Containers.Doubly_Linked_Lists Date: 5 Feb 2007 07:43:30 -0800 Organization: http://groups.google.com Message-ID: <1170690209.973403.197760@m58g2000cwm.googlegroups.com> References: <45c6500f$0$22528$39db0f71@news.song.fi> <87fy9llgnx.fsf@ludovic-brenta.org> NNTP-Posting-Host: 66.162.65.129 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1170690230 15676 127.0.0.1 (5 Feb 2007 15:43:50 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 5 Feb 2007 15:43:50 +0000 (UTC) In-Reply-To: <87fy9llgnx.fsf@ludovic-brenta.org> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9) Gecko/20061206 Firefox/1.5.0.9,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: m58g2000cwm.googlegroups.com; posting-host=66.162.65.129; posting-account=Zl1UPAwAAADEsUSm1PMMiDjihtBlZUi_ Xref: g2news2.google.com comp.lang.ada:8967 Date: 2007-02-05T07:43:30-08:00 List-Id: On Feb 4, 5:08 pm, Ludovic Brenta 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;