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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,248d2a0e5d01f107 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-07-12 07:23:19 PST Message-ID: <3D2EE650.8070200@bluewin.ch> Date: Fri, 12 Jul 2002 16:23:12 +0200 From: Mats Weber User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.1a) Gecko/20020610 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Problem with Gnat.Dynamic_Tables References: <3D2B6BFB.D4468F57@easystreet.com> <5ee5b646.0207110713.a6b5a05@posting.google.com> <3D2DEC07.9E47AC3@easystreet.com> <5ee5b646.0207111942.58720e6f@posting.google.com> <3D2E7EBC.C629C700@easystreet.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: mapc186.epfl.ch X-Trace: epflnews.epfl.ch 1026483794 mapc186.epfl.ch (12 Jul 2002 16:23:14 +0200) Organization: EPFL Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsmi-us.news.garr.it!NewsITBone-GARR!area.cu.mi.it!news.mailgate.org!news-zh.switch.ch!epflnews.epfl.ch Xref: archiver1.google.com comp.lang.ada:27016 Date: 2002-07-12T16:23:12+02:00 List-Id: achrist@easystreet.com wrote: > http://lglwww.epfl.ch/Team/MW/mw_components.html > This doesn't say anything about initialization, but it does say that > there is no finalization. I wonder if this means that I'm leaking > memory when I use these components for unbounded strings. > > Anyone have any pointers to more extensive docs for these? Controlled types will work with my components because a new object is created every time you insert into the table. and that is probably true of all my structure components, even though they were developped in Ada 83. GNAT.Dynamic_Table does not work because it preallocates an array for storing its stuff, thus avoiding one allocation per insertion into the table. You should describe your problem (what do you need to store into the table, what is the distribution of values of your index/key type ?) so that we can give you a better hint for choosing the right component.