POV-Ray : Newsgroups : povray.general : Dynamic arrays in SDL : Re: Dynamic arrays in SDL Server Time
28 Apr 2024 18:46:45 EDT (-0400)
  Re: Dynamic arrays in SDL  
From: Bald Eagle
Date: 26 Jul 2016 19:05:00
Message: <web.5797ec49ef86a3ce5e7df57c0@news.povray.org>
"Bill Pragnell" <bil### [at] hotmailcom> wrote:

> Now this is all fine and good, and terribly useful. But I was wondering: is this
> a perfectly cromulent thing to do, or am I abusing the SDL in some way?
>
> Bill

"Cromulent"   :)

It looks perfectly legit to me.   I'm not quite sure how else one would go about
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

wouldn't be too hard...


Post a reply to this message

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