* Charles: arrays vs. vector
@ 2002-11-13 15:31 Victor Porton
2002-11-13 19:08 ` Matthew Heaney
0 siblings, 1 reply; 2+ messages in thread
From: Victor Porton @ 2002-11-13 15:31 UTC (permalink / raw)
Why Charles has both arrays and vectors? Why not one package
and one type for both?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Charles: arrays vs. vector
2002-11-13 15:31 Charles: arrays vs. vector Victor Porton
@ 2002-11-13 19:08 ` Matthew Heaney
0 siblings, 0 replies; 2+ messages in thread
From: Matthew Heaney @ 2002-11-13 19:08 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-11-13 19:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-13 15:31 Charles: arrays vs. vector Victor Porton
2002-11-13 19:08 ` Matthew Heaney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox