annotate test/foreach6.d @ 52:0c77619e803b trunk

[svn r56] Initial support for TypeInfo. Enums not work. Several other bugfixes.
author lindquist
date Tue, 23 Oct 2007 05:55:12 +0200
parents 61bc1b4ad3c4
children
rev   line source
lindquist@51 1 module foreach6;
lindquist@51 2
lindquist@51 3 struct S
lindquist@51 4 {
lindquist@51 5 long l;
lindquist@51 6 float f;
lindquist@51 7 }
lindquist@51 8
lindquist@51 9 void main()
lindquist@51 10 {
lindquist@52 11 S[4] arr = void;
lindquist@51 12 foreach(i,v;arr) {
lindquist@52 13 v = S(i, i*2.5);
lindquist@51 14 }
lindquist@51 15 }