Mercurial > projects > ddmd
comparison dmd/AndAssignExp.d @ 117:fe941d774f4a
+ ctfe of assign operations
author | Trass3r |
---|---|
date | Thu, 02 Sep 2010 02:50:19 +0200 |
parents | e28b18c23469 |
children | 9e39c7de8438 |
comparison
equal
deleted
inserted
replaced
116:352a5164f692 | 117:fe941d774f4a |
---|---|
1 module dmd.AndAssignExp; | 1 module dmd.AndAssignExp; |
2 | 2 |
3 import dmd.common; | 3 import dmd.common; |
4 import dmd.expression.And; | |
4 import dmd.BinExp; | 5 import dmd.BinExp; |
5 import dmd.Loc; | 6 import dmd.Loc; |
6 import dmd.Expression; | 7 import dmd.Expression; |
7 import dmd.Scope; | 8 import dmd.Scope; |
8 import dmd.InterState; | 9 import dmd.InterState; |
28 return commonSemanticAssignIntegral(sc); | 29 return commonSemanticAssignIntegral(sc); |
29 } | 30 } |
30 | 31 |
31 override Expression interpret(InterState istate) | 32 override Expression interpret(InterState istate) |
32 { | 33 { |
33 assert(false); | 34 return interpretAssignCommon(istate, &And); |
34 } | 35 } |
35 | 36 |
36 override void buildArrayIdent(OutBuffer buf, Expressions arguments) | 37 override void buildArrayIdent(OutBuffer buf, Expressions arguments) |
37 { | 38 { |
38 AssignExp_buildArrayIdent(buf, arguments, "And"); | 39 AssignExp_buildArrayIdent(buf, arguments, "And"); |