diff dmd/DotVarExp.d @ 113:3482c73a991b

More cleanup for arrays
author Eldar Insafutdinov <e.insafutdinov@gmail.com>
date Tue, 31 Aug 2010 23:57:32 +0100
parents acd69f84627e
children e28b18c23469
line wrap: on
line diff
--- a/dmd/DotVarExp.d	Wed Sep 01 00:14:27 2010 +0200
+++ b/dmd/DotVarExp.d	Tue Aug 31 23:57:32 2010 +0100
@@ -68,12 +68,11 @@
 				 * with:
 				 *	tuple(e1.a, e1.b, e1.c)
 				 */
-				Expressions exps = new Expressions;
+				auto exps = new Expressions;
 
 				exps.reserve(tup.objects.dim);
-				for (size_t i = 0; i < tup.objects.dim; i++)
+				foreach (o; tup.objects)
 				{   
-					Object o = cast(Object)tup.objects.data[i];
 					if (auto e = cast(Expression)o)
 					{
 						if (e.op != TOK.TOKdsymbol)