POV-Ray : Newsgroups : povray.general : Dynamic arrays in SDL : Re: Dynamic arrays in SDL Server Time
28 Apr 2024 20:02:05 EDT (-0400)
  Re: Dynamic arrays in SDL  
From: Bill Pragnell
Date: 27 Jul 2016 05:20:00
Message: <web.57987ba4ef86a3ce5b7d07940@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
> "Cromulent"   :)
Well, the array does get embiggened after all :)

> it, though I'd like to find some way to sort of be able to add items into an
> array "on the fly".  I suppose writing something like
> #macro Add_ArrayItem (Item)
>  [expand array by 1]
>  [declare array [Old_N+1] = Item]
> #end

Yup.
You could expand by more, less frequently, to save time, but then you'd also
need to keep track of the next free index.


Post a reply to this message

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