POV-Ray : Newsgroups : povray.beta-test : Arrays.inc Server Time
1 Nov 2024 13:22:30 EDT (-0400)
  Arrays.inc (Message 1 to 2 of 2)  
From: Richard
Subject: Arrays.inc
Date: 8 May 2002 15:20:57
Message: <3cd97a99@news.povray.org>
Arrays.inc has a typo.
arr[ should be array[

correct section of code reads
#macro Rand_Array_Item(Array, Stream)
   #if(dimensions(Array)=1)
      Array [floor(rand(Stream)*0.9999999*dimension_size(Array,1))]
   #else
      #error "The Rand_Array_Item() macro only works for 1D arrays."
   #end
#end


Post a reply to this message

From: Rune
Subject: Re: Arrays.inc
Date: 8 May 2002 16:14:49
Message: <3cd98739@news.povray.org>
Richard wrote:
> Arrays.inc has a typo.
> arr[ should be array[

Confirmed and fixed for next version.

Rune
--
3D images and anims, include files, tutorials and more:
Rune's World:  http://rsj.mobilixnet.dk (updated Apr 14)
POV-Ray Users: http://rsj.mobilixnet.dk/povrayusers/
POV-Ray Ring:  http://webring.povray.co.uk


Post a reply to this message

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