From: "Eric G. Miller" <egm2@jps-nospam.net>
Subject: Re: Array of unbounded strings, memory leakage?
Date: Sun, 20 Oct 2002 20:16:21 GMT
Date: 2002-10-20T20:16:21+00:00 [thread overview]
Message-ID: <pan.2002.10.20.20.20.26.881003@jps-nospam.net> (raw)
In-Reply-To: 3DB2FF06.8060308@acm.org
In <3DB2FF06.8060308@acm.org>, Jeffrey Carter wrote:
> This shouldn't leak memory. If it does, there's a problem with your
> compiler's implementation of Unbounded_String.
Thanks for the info. It's what I thought, but wasn't sure...
> Note that the loop to initialize the new elements could use an aggregate:
>
> Tmp (Old_Size + 1 .. Size) := (others => Null_Unbounded_String);
Doh!
> However, since an uninitialized Unbounded_String has the default value
> of Null_Unbounded_String, this isn't necessary.
Also wasn't sure of that either (haven't used Unbounded Strings much)...
next prev parent reply other threads:[~2002-10-20 20:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-20 16:20 Array of unbounded strings, memory leakage? Eric G. Miller
2002-10-20 19:08 ` Jeffrey Carter
2002-10-20 20:16 ` Eric G. Miller [this message]
2002-10-22 14:36 ` Matthew Heaney
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox