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 X-Google-Thread: 103376,6216cea7ed8d90a9 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-07 13:38:05 PST Path: supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!platform.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Got bitten by GNAT.Table Date: 07 Mar 2001 16:33:56 -0500 Organization: NASA Goddard Space Flight Center Message-ID: References: <3AA0B68C.AD5F1242@blops.mydiax.ch> <3AA2C4C4.CF3E6457@blops.mydiax.ch> <3AA2F24A.3843E70@France.Sun.COM> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: skates.gsfc.nasa.gov 984001673 17983 128.183.220.71 (7 Mar 2001 21:47:53 GMT) X-Complaints-To: dscoggin@cne-odin.gsfc.nasa.gov NNTP-Posting-Date: 7 Mar 2001 21:47:53 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.6 Xref: supernews.google.com comp.lang.ada:5514 Date: 2001-03-07T21:47:53+00:00 List-Id: Herv� Bitteur writes: > GNAT.Table is useful to provide dynamically growing arrays. > However I recently discovered the reason why I occasionally > had other data overwritten, if not access violation errors. > Here is a simple test program that you can run from the command line, > with just one argument: the upper bound of the loop. > Hi Herve! GNAT.Table is not implemented in "pure" Ada, so it has some restrictions. Be sure to read the spec very carefully. If you believe you are following the restrictions, report your bug to report@gnat.com Or, use sal.poly.unbounded_arrays, from http://users.erols.com/leakstan/Stephe/Ada/sal.html. That's a pure Ada solution. -- -- Stephe