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,78ec2055a6aedba8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-13 11:08:35 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: mheaney@on2.com (Matthew Heaney) Newsgroups: comp.lang.ada Subject: Re: Charles: arrays vs. vector Date: 13 Nov 2002 11:08:34 -0800 Organization: http://groups.google.com/ Message-ID: <1ec946d1.0211131108.47f13500@posting.google.com> References: <3dd2709b$0$299$bed64819@news.gradwell.net> NNTP-Posting-Host: 66.162.65.162 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1037214515 6152 127.0.0.1 (13 Nov 2002 19:08:35 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 13 Nov 2002 19:08:35 GMT Xref: archiver1.google.com comp.lang.ada:30826 Date: 2002-11-13T19:08:35+00:00 List-Id: porton@ex-code.com (Victor Porton) wrote in message news:<3dd2709b$0$299$bed64819@news.gradwell.net>... > Why Charles has both arrays and vectors? Why not one package > and one type for both? They are different abstractions. The vector is a container, implemented as an array, but its implementation is otherwise private. The array stuff was intended as a generalization of the Ada.Strings.* packages, to work for any kind of element type. It's sort of experimental. Actually, my immediate plan is to create a vector-style container whose element type is String, as a more efficient alternative to Ada.Strings.Unbounded. Use the vector, unless you have a compelling need otherwise.