annotate tests/mini/foreach6.d @ 1651:cb960b882ca3 tip

bindings were moved to dsource.org/projects/bindings/
author Moritz Warning <moritzwarning@web.de>
date Thu, 20 May 2010 20:05:03 +0200
parents 30b42a283c8e
children
rev   line source
tomas@715 1 module mini.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 }