diff dmd/Cast.d @ 79:43073c7c7769

updated to 2.035 also implemented a few missing functions still crashes in Import.importAll though
author Trass3r
date Mon, 30 Aug 2010 03:57:51 +0200
parents cab4c37afb89
children be2ab491772e
line wrap: on
line diff
--- a/dmd/Cast.d	Sun Aug 29 14:39:08 2010 +0100
+++ b/dmd/Cast.d	Mon Aug 30 03:57:51 2010 +0200
@@ -119,8 +119,8 @@
 		StructDeclaration sd = tb.toDsymbol(null).isStructDeclaration();
 		assert(sd);
 		Expressions elements = new Expressions;
-		for (size_t i = 0; i < sd.fields.dim; i++)
-		{   Dsymbol s = cast(Dsymbol)sd.fields.data[i];
+		foreach (Dsymbol s; sd.fields)
+		{
 			VarDeclaration v = s.isVarDeclaration();
 			assert(v);