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,1ec5fd4a21150c1 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!l41g2000cwc.googlegroups.com!not-for-mail From: "Matthew Heaney" Newsgroups: comp.lang.ada Subject: Re: Access types to records containing strings Date: 15 Feb 2005 08:18:59 -0800 Organization: http://groups.google.com Message-ID: <1108484339.462487.169200@l41g2000cwc.googlegroups.com> References: <3611gpF4qnb9hU1@individual.net> <8uvcyoh3nvbe$.fy9vv8opob1a.dlg@40tude.net> <344d0fee.0502150417.39d1d782@posting.google.com> <1dmtgej543i14$.1g4oh6v2pces.dlg@40tude.net> NNTP-Posting-Host: 66.162.65.162 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1108484344 5553 127.0.0.1 (15 Feb 2005 16:19:04 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 15 Feb 2005 16:19:04 +0000 (UTC) In-Reply-To: <1dmtgej543i14$.1g4oh6v2pces.dlg@40tude.net> User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: l41g2000cwc.googlegroups.com; posting-host=66.162.65.162; posting-account=Zl1UPAwAAADEsUSm1PMMiDjihtBlZUi_ Xref: g2news1.google.com comp.lang.ada:8337 Date: 2005-02-15T08:18:59-08:00 List-Id: Dmitry A. Kazakov wrote: > On 15 Feb 2005 04:17:13 -0800, Xavier Serrand wrote: > > It is what unbounded strings already do. Additionally you will need to make > List_Object controlled (to control destruction), which might be > undesirable. In Ada 2005, you'll be able to put the strings on the indefinite list standard container: package String_Lists is new Ada.Containers.Indefinite_Doubly_Linked_Lists (String); use String_Lists; procedure Op (L : in out List) is begin L.Append ("Hello, World"); Replace_Element (Last (L), "Goodbye, World"); end; No pointers required... -Matt