[chuck-users] arrays holding arrays?
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).
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.
More information about the chuck-users