annotate tests/mini/multiarr4.d @ 883:b52d5de7783f

GC defines and linkage changes.
author Christian Kamm <kamm incasoftware de>
date Thu, 08 Jan 2009 18:20:02 +0100
parents 1bb99290e03a
children
rev   line source
lindquist@64 1 module multiarr4;
lindquist@270 2 extern(C) int printf(char*, ...);
lindquist@64 3
lindquist@64 4 void main()
lindquist@64 5 {
lindquist@64 6 char[][] a;
lindquist@64 7 a.length = 2;
lindquist@64 8 a[0] = "hello";
lindquist@64 9 a[1] = "world";
lindquist@64 10 foreach(v;a)
lindquist@64 11 {
lindquist@64 12 printf("%.*s\n", v.length, v.ptr);
lindquist@64 13 }
lindquist@64 14 }