Mercurial > projects > ddmd
diff dmd/Statement.d @ 63:cab4c37afb89
A bunch of implementations
author | korDen |
---|---|
date | Mon, 23 Aug 2010 16:52:24 +0400 |
parents | ecf732dfe11e |
children | e28b18c23469 |
line wrap: on
line diff
--- a/dmd/Statement.d Mon Aug 23 03:21:32 2010 +0400 +++ b/dmd/Statement.d Mon Aug 23 16:52:24 2010 +0400 @@ -23,6 +23,18 @@ import dmd.Global; import dmd.Util; +template START() +{ + enum START = q{ + if (istate.start) + { + if (istate.start != this) + return null; + istate.start = null; + } + }; +} + class Statement { Loc loc; @@ -159,7 +171,7 @@ return null; } - Expression interpret(InterState* istate) + Expression interpret(InterState istate) { assert(false); }