diff nocompile/template_06.d @ 111:24da167d3f07

svn maintenance 1) mime types 2) end of line property 3) updated links in the result page
author thomask
date Sun, 07 Nov 2004 08:37:27 +0000
parents 659bb018c489
children a33ad7189d21
line wrap: on
line diff
--- a/nocompile/template_06.d	Sat Nov 06 21:55:48 2004 +0000
+++ b/nocompile/template_06.d	Sun Nov 07 08:37:27 2004 +0000
@@ -1,27 +1,27 @@
-// @author@	Patrick Down <Patrick_member@pathlink.com>
-// @date@	2004-06-20
-// @uri@	news://cb346n$1uk0$1@digitaldaemon.com
-// @url@	nttp://digitalmars.com/digitalmars.D.bugs:565
-
-module dstress.nocompile.template_06;
-
-template foo(Type, alias Func){
-	int foo(Type t){
-		return Func(t);
-	}
-}
-
-template foo(Type){
-	int foo(Type t){
-		static int f(Type a){
-			return a;
-		}
-		return foo!(Type, f)(t);
-	}
-}
-
-int main(){
-	printf("%d\n",foo!(int)(1));
-	return 0;
-}
-
+// @author@	Patrick Down <Patrick_member@pathlink.com>
+// @date@	2004-06-20
+// @uri@	news://cb346n$1uk0$1@digitaldaemon.com
+// @url@	nttp://digitalmars.com/digitalmars.D.bugs:565
+
+module dstress.nocompile.template_06;
+
+template foo(Type, alias Func){
+	int foo(Type t){
+		return Func(t);
+	}
+}
+
+template foo(Type){
+	int foo(Type t){
+		static int f(Type a){
+			return a;
+		}
+		return foo!(Type, f)(t);
+	}
+}
+
+int main(){
+	printf("%d\n",foo!(int)(1));
+	return 0;
+}
+