Mercurial > projects > dil
diff trunk/src/dil/semantic/Analysis.d @ 673:64fec49651cf
Renamed VariableDeclaration to VariablesDeclaration.
Removed TryCast and CastTo template functions.
Renamed Node.iS() to Node.Is().
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Fri, 18 Jan 2008 16:44:20 +0100 |
parents | 9f96fd51cb41 |
children | 10b314bf37e3 |
line wrap: on
line diff
--- a/trunk/src/dil/semantic/Analysis.d Fri Jan 18 00:30:14 2008 +0100 +++ b/trunk/src/dil/semantic/Analysis.d Fri Jan 18 16:44:20 2008 +0100 @@ -36,7 +36,7 @@ { // scop.error(e.begin, "expression is not evaluatable at compile time"); } - else if (auto stringExpr = TryCast!(StringExpression)(e)) + else if (auto stringExpr = e.Is!(StringExpression)) // Print string to standard output. Stdout(stringExpr.getString()); else @@ -59,7 +59,7 @@ { // scop.error(e.begin, "expression is not evaluatable at compile time"); } - else if (auto stringExpr = TryCast!(StringExpression)(e)) + else if (auto stringExpr = e.Is!(StringExpression)) { // TODO: collect library paths in Module? // scop.modul.addLibrary(stringExpr.getString());