comparison test/multiarr4.d @ 64:b688ad419f8c trunk

[svn r68] Added support for multi-dimensional static arrays. Several bugfixes to array support.
author lindquist
date Thu, 25 Oct 2007 12:09:13 +0200
parents
children d9d5d59873d8
comparison
equal deleted inserted replaced
63:2c39b5292cf3 64:b688ad419f8c
1 module multiarr4;
2
3 void main()
4 {
5 char[][] a;
6 a.length = 2;
7 a[0] = "hello";
8 a[1] = "world";
9 foreach(v;a)
10 {
11 printf("%.*s\n", v.length, v.ptr);
12 }
13 }