> Please note this is still a step towards generalised array handling.
> It's still not complete by any means!


AH! But we now have POLYADIC ARRAYS. So this code:

> for var kk in 0 upto 4 do
>  k = kk :>> 5;
>  for var jj in 0 upto 3 do
>    j = jj :>> 4;
>    for var ii in 0 upto 2 do
>      i = ii :>> 3;
>       ijk = i,j,k;
>       println$ ijk.0.str + "," + ijk.1.str + "," + ijk.2.str+" encoding=" + 
> (ijk :>>int) .str;
>    done
>  done
> done

is not polyadic .. obviously we have a rank 3 matrix and 3 loops.
The code only works for rank 3. BUT this code:

///////////////////////////////
for var v in 0 upto 59 do
  ijk = v :>> (3 * 4 * 5);
  println$ ijk.0.str + "," + ijk.1.str + "," + ijk.2.str+" encoding=" + (ijk 
:>>int) .str;
done 
/////////////////////////

also works and gives the same result, and you'll note the number
of loops does NOT depend on the rank of the matrix: its one loop
every time, independent of rank.

--
john skaller
skal...@users.sourceforge.net
http://felix-lang.org




------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to