Mercurial > projects > ddmd
diff 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 |
line wrap: on
line diff
--- a/dmd/AnonDeclaration.d Sun Aug 29 09:43:40 2010 +0100 +++ b/dmd/AnonDeclaration.d Sun Aug 29 14:36:55 2010 +0100 @@ -83,10 +83,8 @@ aad.structalign = sc.structalign; aad.parent = ad; - for (uint i = 0; i < decl.dim; i++) + foreach(Dsymbol s; decl) { - Dsymbol s = cast(Dsymbol)decl.data[i]; - s.semantic(sc); if (isunion) sc.offset = 0;