diff dmd/ClassDeclaration.d @ 84:be2ab491772e

Expressions -> Vector!Expression
author Eldar Insafutdinov <e.insafutdinov@gmail.com>
date Mon, 30 Aug 2010 16:12:19 +0100
parents 43073c7c7769
children 23280d154c5b
line wrap: on
line diff
--- a/dmd/ClassDeclaration.d	Mon Aug 30 18:42:04 2010 +0400
+++ b/dmd/ClassDeclaration.d	Mon Aug 30 16:12:19 2010 +0100
@@ -581,7 +581,7 @@
 		{
 		interfaceSemantic(sc);
 
-		foreach(Dsymbol s; members)
+		foreach (s; members)
 			s.addMember(sc, this, true);
 
 		/* If this is a nested class, add the hidden 'this'
@@ -692,7 +692,7 @@
 		Scope scsave = sc;	/// a copy must be created?
 		int members_dim = members.dim;
 		sizeok = 0;
-		foreach(Dsymbol s; members)
+		foreach (s; members)
 			s.semantic(sc);
 
 		if (sizeok == 2)
@@ -827,7 +827,7 @@
 			buf.writenl();
 			buf.writeByte('{');
 			buf.writenl();
-			foreach(Dsymbol s; members)
+			foreach (s; members)
 			{
 				buf.writestring("    ");
 				s.toCBuffer(buf, hgs);
@@ -947,9 +947,9 @@
 		OverloadSet os = s.isOverloadSet();	
 		if (os)
 		{
-			foreach(Dsymbol s2; os.a)
+			foreach (s2; os.a)
 			{   
-				FuncDeclaration f2 = s2.isFuncDeclaration();
+				auto f2 = s2.isFuncDeclaration();
 				if (f2 && overloadApply(f2, &p.isf, &p))
 					return false;
 			}
@@ -1203,7 +1203,7 @@
 			scclass = SCcomdat;
 
 		// Put out the members
-		foreach(Dsymbol member; members)
+		foreach (member; members)
 			member.toObjFile(0);
 
 static if (false) {
@@ -1391,7 +1391,7 @@
 		{
 			if (cd.members)
 			{
-				foreach(Dsymbol sm; cd.members)
+				foreach (sm; cd.members)
 				{
 					//printf("sm = %s %s\n", sm.kind(), sm.toChars());
 					if (sm.hasPointers())