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 09:56:19 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: achrist@easystreet.com Newsgroups: comp.lang.ada Subject: Re: Problem with Gnat.Dynamic_Tables Date: Fri, 12 Jul 2002 09:56:29 -0700 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <3D2F0A3D.8DEF335F@easystreet.com> X-Mailer: Mozilla 4.79 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 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> <3D2EE650.8070200@bluewin.ch> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: newsabuse@supernews.com Xref: archiver1.google.com comp.lang.ada:27018 Date: 2002-07-12T09:56:29-07:00 List-Id: Mats Weber wrote: > > > 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. I wanted a variable-length array of variable-length (Unbounded) strings, with random access and update based on an integer (Natural) index. This works fine with your generic Dynamic_Array, thanks very much. If I'm not leaking memory or going to have a crash at some point because of not initializing, then I'm happy with the solution. I see that it works like a Map, which means, I suppose, that there is some search involved in simply accessing an element of the array, but this is not a noticeable problem, given all the other inefficiencies in my code, which hardly add up to anything noticeable in toto. Thanks very much. Al