diff dmd/FuncDeclaration.d @ 74:7e0d548de9e6

Switch Arrays of Dsymbols to the new templated Vector type
author Eldar Insafutdinov <e.insafutdinov@gmail.com>
date Sun, 29 Aug 2010 09:43:40 +0100
parents ef02e2e203c2
children ad4792a1cfd6
line wrap: on
line diff
--- a/dmd/FuncDeclaration.d	Sat Aug 28 19:42:41 2010 +0400
+++ b/dmd/FuncDeclaration.d	Sun Aug 29 09:43:40 2010 +0100
@@ -595,7 +595,7 @@
 			
 			/* Remember which functions this overrides
 			 */
-			foverrides.push(cast(void*)fdv);
+			foverrides.push(fdv);
 
 			/* This works by whenever this function is called,
 			 * it actually returns tintro, which gets dynamically
@@ -645,7 +645,7 @@
 				
 				/* Remember which functions this overrides
 				 */
-				foverrides.push(cast(void*)fdv);
+				foverrides.push(fdv);
 
 				if (fdv.tintro)
 					ti = fdv.tintro;
@@ -1098,7 +1098,7 @@
 			if (!sc2.insert(v))
 				error("parameter %s.%s is already defined", toChars(), v.toChars());
 			else
-				parameters.push(cast(void*)v);
+				parameters.push(v);
 			localsymtab.insert(v);
 			v.parent = this;
 			}
@@ -3743,3 +3743,5 @@
 
     override FuncDeclaration isFuncDeclaration() { return this; }
 }
+
+class FuncDeclarations : Vector!FuncDeclaration { final typeof(this) copy() { auto a = new typeof(this); copyTo(a); return a; } }
\ No newline at end of file