[chuck-users] arrays holding arrays?

Ge Wang gewang at CS.Princeton.EDU
Fri Aug 4 14:14:25 EDT 2006


> You can do this up to arbitrary dimensions, just make sure the
> dimensions add up (the type checker shall complain if they don't).

an example:

int foo[4][8][32][35];

So...

     foo[x][y][z][w] is of type int
     foo[x][y][z] is of type int [ ]
     foo[x][y] is of type int [ ] [ ]
     ...
     foo is of type int [ ] [ ] [ ] [ ]

x, y, z, w represent integers in this example.

Ge!



More information about the chuck-users mailing list