Mercurial > projects > ddmd
comparison dmd/ModExp.d @ 109:ceda59b4d255
expression.c changes, now only ddoc should be left
author | Trass3r |
---|---|
date | Tue, 31 Aug 2010 22:08:52 +0200 |
parents | 2e2a5c3f943a |
children | e28b18c23469 |
comparison
equal
deleted
inserted
replaced
108:6da99741178e | 109:ceda59b4d255 |
---|---|
38 e = op_overload(sc); | 38 e = op_overload(sc); |
39 if (e) | 39 if (e) |
40 return e; | 40 return e; |
41 | 41 |
42 typeCombine(sc); | 42 typeCombine(sc); |
43 if (e1.op != TOKslice && e2.op != TOKslice) | 43 if (!e1.isArrayOperand()) |
44 { | |
45 e1.checkArithmetic(); | 44 e1.checkArithmetic(); |
45 if (!e2.isArrayOperand()) | |
46 e2.checkArithmetic(); | 46 e2.checkArithmetic(); |
47 } | 47 |
48 if (type.isfloating()) | 48 if (type.isfloating()) |
49 { | 49 { |
50 type = e1.type; | 50 type = e1.type; |
51 if (e2.type.iscomplex()) | 51 if (e2.type.iscomplex()) |
52 { | 52 { |