POV-Ray : Newsgroups : povray.programming : Question about creating arrays Server Time
28 Jul 2024 10:22:15 EDT (-0400)
  Question about creating arrays (Message 1 to 2 of 2)  
From: Warp
Subject: Question about creating arrays
Date: 13 Dec 2000 12:04:20
Message: <3a37ac14@news.povray.org>
Is there any more efficient way of creating an array than allocating each
item separately and putting a pointer in the array?

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

From: Wlodzimierz ABX Skiba
Subject: Re: Question about creating arrays
Date: 13 Dec 2000 12:11:34
Message: <3a37adc6@news.povray.org>
Warp wrote in message <3a37ac14@news.povray.org>...
>  Is there any more efficient way of creating an array than allocating each
>item separately and putting a pointer in the array?


allocate block for whole array at once and
write set of pointers by simple adding size of each element to pointer of
block - but this need change at destroy function of array, I think

ABX


Post a reply to this message

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