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-11 13:36:56 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!sn-xit-05!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: Thu, 11 Jul 2002 13:35:19 -0700 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <3D2DEC07.9E47AC3@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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: newsabuse@supernews.com Xref: archiver1.google.com comp.lang.ada:27010 Date: 2002-07-11T13:35:19-07:00 List-Id: Robert Dewar wrote: > > achrist@easystreet.com wrote in message news:<3D2B6BFB.D4468F57@easystreet.com>... > > > I see in the Gnat.Dynamic_Tables comments that no > > initialization of the array elements is done. > > Exactly! > > > Does an unbounded_string need some > > initialization? > > Of course it does, so this is just a misuse of the package Thanks. I'm puzzled why the mw_components Dynamic_Array seens to work without me, as user of the generic package, doing anything different (as far as I see) when using that package from what didn't work with GNAT dynamic tables. The GNAT code appeared to work, but crashed when element #167 or so was added to the table. The Dynamic_Array appears to work for as much data as I have (about 1500 entries in my table), but is it likely that there will be a lurking bug in this usage? If there is something about an Unbounded_String that means it must be initialized before it can be assigned to, how could that initialization happen to the mw_conponents Dynamic_Array components when I don't pass the generic any initialization procedure or anything related to initialization? Al