POV-Ray : Newsgroups : povray.general : funky array thing : Re: funky array thing Server Time
27 Sep 2024 01:14:22 EDT (-0400)
  Re: funky array thing  
From: Alain Martel
Date: 23 Aug 2024 07:52:57
Message: <66c87819$1@news.povray.org>
Le 2024-08-22 à 22:51, Cousin Ricky a écrit :
> On 2024-08-22 15:53 (-4), Leroy wrote:
>>
>> Like this :: #declare Tab=array[4]{ 1 2 3 4 }
>>
>> I was going to go back and put commas in but forgot and ran it anyway and It
>> still worked!
>>
>> So I tried ::
>> #declare Sf=array[4]{"a" "b" "c" "d"}
>> #declare Sf=array[4]{<1,2,3> <1,2,3> <1,2,3> <1,2,3>}
>>
>> They  also worked !
> 
> Be careful with this.  Don't get burned by a leading '+' or '-'.
> 
Like this :: #declare Tab=array[4]{ 1 -2 3 -4 }
That parse as :: #declare Tab=array[4]{ -1, -1, 0, 0 }
Or this :: #declare Tab=array[4]{ +1 -2 +3 -4 }
That parse as :: #declare Tab=array[4]{ -2, 0, 0, 0 }


Post a reply to this message

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