changeset 46:6a54b832369a trunk

[svn r50]
author lindquist
date Fri, 19 Oct 2007 16:37:34 +0200
parents ff359b65fa62
children 6d60e6049c4e
files test/foreach4.d
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/foreach4.d	Fri Oct 19 16:37:34 2007 +0200
@@ -0,0 +1,9 @@
+module foreach4;
+
+void main()
+{
+    int[] arr = new int[4];
+    foreach(i,v;arr) {
+        printf("arr[%u] = %d\n",i,v);
+    }
+}