diff trunk/src/dil/SyntaxTree.d @ 516:433d51c18524

Renamed template Cast to TryCast.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Fri, 14 Dec 2007 22:43:44 +0100
parents b60450804b6e
children c9579ea87228
line wrap: on
line diff
--- a/trunk/src/dil/SyntaxTree.d	Fri Dec 14 20:12:13 2007 +0100
+++ b/trunk/src/dil/SyntaxTree.d	Fri Dec 14 22:43:44 2007 +0100
@@ -220,7 +220,7 @@
 /// This string is mixed into the constructor of a class that inherits from Node.
 const string set_kind = `this.kind = mixin("NodeKind." ~ typeof(this).stringof);`;
 
-Class Cast(Class)(Node n)
+Class TryCast(Class)(Node n)
 {
   assert(n !is null);
   if (n.kind == mixin("NodeKind." ~ typeof(Class).stringof))