Closed zxytim closed 11 years ago
sample in README:
grid:int[3][3] = [ [1, 2, 3] [4, 5, 6] [7, 8, 0] ]
just won't work. one-dimensional array
int main() a:int[11]
works. but
int main() a:int[11][11]
fails with
line 2:14 no viable alternative at input '['
multi-dimensional array, definition and usage:
int main() a: int[10,10] a[1,2] = 1
Thanks! you should update README
Thank you. The documentation should be improved...
sample in README:
just won't work. one-dimensional array
works. but
fails with