Mercurial > projects > ddmd
diff dmd/ContinueStatement.d @ 155:a43c65469219
+ Statement.interpret()
+ ContinueStatement.interpret()
+ DoStatement.interpret()
author | trass3r |
---|---|
date | Wed, 15 Sep 2010 17:31:22 +0200 |
parents | e28b18c23469 |
children | e3afd1303184 |
line wrap: on
line diff
--- a/dmd/ContinueStatement.d Wed Sep 15 15:32:31 2010 +0200 +++ b/dmd/ContinueStatement.d Wed Sep 15 17:31:22 2010 +0200 @@ -1,8 +1,10 @@ module dmd.ContinueStatement; import dmd.common; +import dmd.interpret.Util; import dmd.Statement; import dmd.FuncDeclaration; +import dmd.GlobalExpressions; import dmd.IntegerExp; import dmd.ReturnStatement; import dmd.LabelStatement; @@ -109,7 +111,14 @@ override Expression interpret(InterState istate) { - assert(false); +version(LOG) + writef("ContinueStatement::interpret()\n"); + + mixin(START); + if (ident) + return EXP_CANT_INTERPRET; + else + return EXP_CONTINUE_INTERPRET; } override BE blockExit()