POV-Ray : Newsgroups : povray.programming : Growing arrays : Re: Growing arrays Server Time
28 Jul 2024 14:30:29 EDT (-0400)
  Re: Growing arrays  
From: Disnel
Date: 29 Sep 2000 08:51:25
Message: <39D4904D.8D16400D@itam.cas.cz>
Warp wrote:
> 
> 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.

You are right. My mistake.

> Growing this array of
> pointers is not impossible at all, but not trivial (at least if wanting to
> do it efficiently).

If we assume, that array can only grow, thinkgs become simplier.

> 
> --
> 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.