in reply to Re: multidimensional arrays
in thread multidimensional arrays
i need to access data by index. The number of indices is a variable.
are all valid.array->[4] array->[3]->[5] array->[7]->[2]->[3]
interestingly, the problem is CREATING the Ndim array in a general manner. most examples show loops to build each dimension, each nested loop is one dimension. i actually did write this first, and entering the next nested loop was predicated on a valid index. however, i still have to have N nested loops to support N dimensions. i used the "scalar" paradigm for my question as i thought it is more comprehensible.
i found it straightforward to ACCESS the array generally with the use of "ref". (if the reference is ARRAY, it's another dimension of the array!)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: multidimensional arrays
by blazar (Canon) on Jun 10, 2007 at 20:20 UTC |