|
|
On Wed, 30 Jun 1999 12:25:31 -0700, Ken wrote:
>
>
>Stewart #7 wrote:
>>
>> Will the new array function (latest pov release) allow you
>> to define an array of ANY size...say 30 by 200 ?
>>
>> Also...is there a tutorial which deals mostly with this function?
>>
>> thanks, stu7
>
>I believe it it limited to a maximum of 5 x n in the format of
>
><a,b,c,d,e>,
><f,g,h,i,j>,
><k,l,m,n,o>,
>etc...
Why should that be? You're not limited to a single-dimensional
array, you know. Consider this example, from the docs:
#declare Rows=5; #declare Cols=4;
#declare Table=array[Rows][Cols]
Here are the real limits on arrays, gleaned from the source code:
- An array may have a maximum of five dimensions.
- All of the elements in an array must be of the same type.
- Each dimension may be as large as needed, but the product of the sizes must
be no greater than the size of a signed int on your architecture. For most
current architectures, this is something like 2 billion, so you'll probably
run out of either time or memory first.
This information is also in the documentation for arrays, except for the maximum
size (probably because it's so ridiculously huge as to not bear mentioning.)
Post a reply to this message
|
|