comparison test/unrolled.d @ 15:37a4fdab33fc trunk

[svn r19] * Added support for reassigning 'this' inside class constructors. * Added preliminary support for UnrolledLoopStatement. That is foreach on a tuple.
author lindquist
date Wed, 03 Oct 2007 04:56:32 +0200
parents
children d9d5d59873d8
comparison
equal deleted inserted replaced
14:0e86428ee567 15:37a4fdab33fc
1 module unrolled;
2
3 void test(T...)(T t) {
4 foreach (value; t) {
5 printf("%d\n", value);
6 if (value == 2)
7 break;
8 }
9 }
10
11 void main() {
12 test(1,4,3);
13 }