POV-Ray : Newsgroups : povray.programming : Growing arrays : Re: Growing arrays Server Time
28 Jul 2024 14:32:45 EDT (-0400)
  Re: Growing arrays  
From: Warp
Date: 29 Sep 2000 07:57:29
Message: <39d483a9@news.povray.org>
Disnel <dis### [at] itamcascz> wrote:
: But in POV documentation says, that POV arrays are implemented
: as linked lists.

  Wrong. Section 4.1.7.1 says:

"Large uninitalized arrays do not take much memory. Internally they
are arrays of pointers so they probably use just 4 bytes per element."

  They are implemented as an array, not a list. Growing this array of
pointers is not impossible at all, but not trivial (at least if wanting to
do it efficiently).

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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