|
 |
"Bill Pragnell" <bil### [at] hotmail com> wrote:
> >
> > "Although it is permissible to reference an entire array as a whole, you may
> > not reference just one dimension of a multi-dimensional array."
>
> You can kind-of do this in SDL, but only if you use arrays of arrays instead of
> multi-dimensional arrays. So, instead of
>
> #declare A = array[3][2];
>
> use
>
> #declare A = array[3];
> #for (I, 0, 2)
> #declare A[I] = array[2];
> #end
>
That is very clever, and will go into my 'bag of tricks'. Thanks.
Post a reply to this message
|
 |