From: "Matthew Heaney" <mheaney@on2.com>
Subject: Re: Access types to records containing strings
Date: 15 Feb 2005 08:18:59 -0800
Date: 2005-02-15T08:18:59-08:00 [thread overview]
Message-ID: <1108484339.462487.169200@l41g2000cwc.googlegroups.com> (raw)
In-Reply-To: <1dmtgej543i14$.1g4oh6v2pces.dlg@40tude.net>
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
prev parent reply other threads:[~2005-02-15 16:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-29 8:58 Access types to records containing strings Stefan Merwitz
2005-01-29 9:32 ` Martin Krischik
2005-01-29 10:03 ` Dmitry A. Kazakov
2005-02-15 12:17 ` Xavier Serrand
2005-02-15 13:20 ` Dmitry A. Kazakov
2005-02-15 16:18 ` Matthew Heaney [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