POV-Ray : Newsgroups : povray.general : funky array thing : Re: funky array thing Server Time
27 Sep 2024 01:18:46 EDT (-0400)
  Re: funky array thing  
From: Cousin Ricky
Date: 22 Aug 2024 22:51:22
Message: <66c7f92a$1@news.povray.org>
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 '-'.


Post a reply to this message

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