comp.lang.ada
 help / color / mirror / Atom feed
From: achrist@easystreet.com
Subject: Re: Problem with Gnat.Dynamic_Tables
Date: Thu, 11 Jul 2002 13:35:19 -0700
Date: 2002-07-11T13:35:19-07:00	[thread overview]
Message-ID: <3D2DEC07.9E47AC3@easystreet.com> (raw)
In-Reply-To: 5ee5b646.0207110713.a6b5a05@posting.google.com

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



  reply	other threads:[~2002-07-11 20:35 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-09 23:04 Problem with Gnat.Dynamic_Tables achrist
2002-07-11  0:19 ` achrist
2002-07-11 15:13 ` Robert Dewar
2002-07-11 20:35   ` achrist [this message]
2002-07-12  3:42     ` Robert Dewar
2002-07-12  7:01       ` achrist
2002-07-12 14:23         ` Mats Weber
2002-07-12 16:56           ` achrist
2002-07-12 22:52             ` Mats Weber
2002-07-12 23:02               ` achrist
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox