Mercurial > projects > ddmd
comparison dmd/AnonDeclaration.d @ 77:ad4792a1cfd6
more D-ification container accessing
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Sun, 29 Aug 2010 14:36:55 +0100 |
parents | 7e0d548de9e6 |
children | 43073c7c7769 |
comparison
equal
deleted
inserted
replaced
74:7e0d548de9e6 | 77:ad4792a1cfd6 |
---|---|
81 sc.offset = 0; | 81 sc.offset = 0; |
82 sc.flags = cast(SCOPE)0; | 82 sc.flags = cast(SCOPE)0; |
83 aad.structalign = sc.structalign; | 83 aad.structalign = sc.structalign; |
84 aad.parent = ad; | 84 aad.parent = ad; |
85 | 85 |
86 for (uint i = 0; i < decl.dim; i++) | 86 foreach(Dsymbol s; decl) |
87 { | 87 { |
88 Dsymbol s = cast(Dsymbol)decl.data[i]; | |
89 | |
90 s.semantic(sc); | 88 s.semantic(sc); |
91 if (isunion) | 89 if (isunion) |
92 sc.offset = 0; | 90 sc.offset = 0; |
93 if (aad.sizeok == 2) | 91 if (aad.sizeok == 2) |
94 break; | 92 break; |