annotate compile/f/foreach_30_A.d @ 1535:20d8ee6523e1

updated to DMD-1.013
author thomask
date Mon, 07 May 2007 05:19:57 +0000
parents b8c0195059d9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
533
c8f0ffd00273 nested foreach and opApply
thomask
parents:
diff changeset
1 // $HeadURL$
c8f0ffd00273 nested foreach and opApply
thomask
parents:
diff changeset
2 // $Date$
c8f0ffd00273 nested foreach and opApply
thomask
parents:
diff changeset
3 // $Author$
c8f0ffd00273 nested foreach and opApply
thomask
parents:
diff changeset
4
c8f0ffd00273 nested foreach and opApply
thomask
parents:
diff changeset
5 // @author@ pragma <pragma_member@pathlink.com>
c8f0ffd00273 nested foreach and opApply
thomask
parents:
diff changeset
6 // @date@ 2005-05-12
1489
b8c0195059d9 changed nntp: URLs to http: URLs
thomask
parents: 533
diff changeset
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=3961
533
c8f0ffd00273 nested foreach and opApply
thomask
parents:
diff changeset
8
c8f0ffd00273 nested foreach and opApply
thomask
parents:
diff changeset
9 module dstress.compile.f.foreach_30_A;
c8f0ffd00273 nested foreach and opApply
thomask
parents:
diff changeset
10
c8f0ffd00273 nested foreach and opApply
thomask
parents:
diff changeset
11 class Collection{
1535
20d8ee6523e1 updated to DMD-1.013
thomask
parents: 1489
diff changeset
12 int opApply(int delegate(ref int) dg){
533
c8f0ffd00273 nested foreach and opApply
thomask
parents:
diff changeset
13 return 0;
c8f0ffd00273 nested foreach and opApply
thomask
parents:
diff changeset
14 }
c8f0ffd00273 nested foreach and opApply
thomask
parents:
diff changeset
15 }
c8f0ffd00273 nested foreach and opApply
thomask
parents:
diff changeset
16
c8f0ffd00273 nested foreach and opApply
thomask
parents:
diff changeset
17 bool test(){
c8f0ffd00273 nested foreach and opApply
thomask
parents:
diff changeset
18 Collection a,b;
c8f0ffd00273 nested foreach and opApply
thomask
parents:
diff changeset
19
c8f0ffd00273 nested foreach and opApply
thomask
parents:
diff changeset
20 foreach(int x; a){
c8f0ffd00273 nested foreach and opApply
thomask
parents:
diff changeset
21 foreach(int y; b){
c8f0ffd00273 nested foreach and opApply
thomask
parents:
diff changeset
22 return false;
c8f0ffd00273 nested foreach and opApply
thomask
parents:
diff changeset
23 }
c8f0ffd00273 nested foreach and opApply
thomask
parents:
diff changeset
24 }
c8f0ffd00273 nested foreach and opApply
thomask
parents:
diff changeset
25
c8f0ffd00273 nested foreach and opApply
thomask
parents:
diff changeset
26 return true;
c8f0ffd00273 nested foreach and opApply
thomask
parents:
diff changeset
27 }