POV-Ray : Newsgroups : povray.general : Arrays: integer in subscript? : Re: Arrays: integer in subscript? Server Time
7 Aug 2024 17:22:59 EDT (-0400)
  Re: Arrays: integer in subscript?  
From: Bob H 
Date: 15 Aug 2001 22:40:11
Message: <3b7b328b@news.povray.org>
They will become whole number positive integers 1 to N, at least from what I
understand.  I was just looking into them once again and realized they are
initialized as 1 to N yet are accessed as 0 to N-1.  I thought I recalled a
discussion about that before and whether it should be changed.  Not sure.

Bob H.

"Greg M. Johnson" <"gregj;-)56590\""@aol.c;-)om> wrote in message
news:3b7b2c13$1@news.povray.org...
> What is allowed in the subscript of an array?  I often do math and then
> put some things into the array.  What is allowed?
>
> MyArray[3.1][n/2][int(n*3.1)]    etc......
>


Post a reply to this message

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