comp.lang.ada
 help / color / mirror / Atom feed
From: mheaney@on2.com (Matthew Heaney)
Subject: Re: Charles: arrays vs. vector
Date: 13 Nov 2002 11:08:34 -0800
Date: 2002-11-13T19:08:35+00:00	[thread overview]
Message-ID: <1ec946d1.0211131108.47f13500@posting.google.com> (raw)
In-Reply-To: 3dd2709b$0$299$bed64819@news.gradwell.net

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.



      reply	other threads:[~2002-11-13 19:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-13 15:31 Charles: arrays vs. vector Victor Porton
2002-11-13 19:08 ` Matthew Heaney [this message]
replies disabled

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