Mercurial > projects > dstress
comparison run/c/continue_04_A.d @ 1535:20d8ee6523e1
updated to DMD-1.013
author | thomask |
---|---|
date | Mon, 07 May 2007 05:19:57 +0000 |
parents | b8c0195059d9 |
children |
comparison
equal
deleted
inserted
replaced
1534:345207906be7 | 1535:20d8ee6523e1 |
---|---|
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=6288 | 7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=6288 |
8 | 8 |
9 module dstress.run.c.continue_04_A; | 9 module dstress.run.c.continue_04_A; |
10 | 10 |
11 struct MyStruct{ | 11 struct MyStruct{ |
12 int opApply(int delegate(inout int i) dg){ | 12 int opApply(int delegate(ref int i) dg){ |
13 for(int index=0; index < 3; index++){ | 13 for(int index=0; index < 3; index++){ |
14 dg(index); | 14 dg(index); |
15 } | 15 } |
16 return 0; | 16 return 0; |
17 } | 17 } |