POV-Ray : Newsgroups : povray.general : Status of Moray? : Re: New SDL for POVRay Server Time
17 Jul 2025 14:24:32 EDT (-0400)
  Re: New SDL for POVRay  
From: Christoph Hormann
Date: 3 Oct 2007 05:55:03
Message: <fdvom5$109$1@chho.imagico.de>
Warp wrote:
> 
> * Existing data containers, namely arrays and strings (which are special
> arrays of characters), should be enhanced and new data containers introduced.
> For example the current array could be internally implemented as a C++ deque,
> which would make it work like the current one plus you can freely resize it
> (larger or smaller), append elements at the beginning and at the end, and
> you can still access any element fast, and none of these operations will be
> slow (eg. resizing does not require copying/moving any existing elements).
> Even inserting or removing elements from the middle of the array would be
> possible, although it would not be a constant-time operation.

The Asymptote array concept provides a fairly flexible sort of array:

http://asymptote.sourceforge.net/doc/Arrays.html

The internal representation is derived from deque i think.

Christoph

-- 
Views of the Earth: http://earth.imagico.de/
Images, include files, tutorials: http://www.imagico.de/
MegaPOV with mechanics simulation: http://megapov.inetart.net/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.