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=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,bb7708f0d606e785,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!b14g2000yqd.googlegroups.com!not-for-mail From: vlc Newsgroups: comp.lang.ada Subject: Deallocation of Unbounded_String Date: Sat, 25 Jul 2009 09:37:33 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 87.221.73.228 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1248539854 3497 127.0.0.1 (25 Jul 2009 16:37:34 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 25 Jul 2009 16:37:34 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: b14g2000yqd.googlegroups.com; posting-host=87.221.73.228; posting-account=ROuOHgoAAABopjDuvPBd02HgYVR-VCZk User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.64 (X11; Linux i686; U; en) Presto/2.1.1,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:6373 Date: 2009-07-25T09:37:33-07:00 List-Id: Hi *, when using Unbounded_String, is it necessary to deallocate instances of Unbounded_String after use or is there a kind of garbage collector implemented? There is a "Free" function in Ada.Strings.Unbounded, but it takes an access to String as argument, not an access to Unbounded_String. If I'm supposed to use this "Free" function to deallocate the memory of my unused Unbounded_String, what is the correct usage of this function (typecast of "access Unbounded_String" to "access String")? Thanks a lot in advance!