opensubscriber
   Find in this group all groups
 
Unknown more information…

g : guile-devel@gnu.org 12 June 2012 • 9:36PM -0400

Re: Growable arrays?
by Hans Aberg

REPLY TO AUTHOR
 
REPLY TO GROUP




On 9 Jun 2012, at 14:32, David Kastrup wrote:

> Scheme/Guile vectors are fixed size.  Now I have a situation where I
> have a basic type lattice with records stored in vectors, and this type
> lattice may be extended dynamically (which typically happens at the
> start of a whole file, for potentially multi-file runs).  Scheme does
> not offer a suitable data structure for that.

If only grows at one end, something like C++ std::deque might be suitable. It has the advantage of not having to invoke copy constructors when it grows.

Hans





Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.