Mercurial > projects > ddmd
comparison dmd/Cast.d @ 84:be2ab491772e
Expressions -> Vector!Expression
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Mon, 30 Aug 2010 16:12:19 +0100 |
parents | 43073c7c7769 |
children | 8e69d041a99d |
comparison
equal
deleted
inserted
replaced
83:ee670dd808a8 | 84:be2ab491772e |
---|---|
126 | 126 |
127 Expression exp = new IntegerExp(0); | 127 Expression exp = new IntegerExp(0); |
128 exp = Cast(v.type, v.type, exp); | 128 exp = Cast(v.type, v.type, exp); |
129 if (exp is EXP_CANT_INTERPRET) | 129 if (exp is EXP_CANT_INTERPRET) |
130 return exp; | 130 return exp; |
131 elements.push(cast(void*)exp); | 131 elements.push(exp); |
132 } | 132 } |
133 e = new StructLiteralExp(loc, sd, elements); | 133 e = new StructLiteralExp(loc, sd, elements); |
134 e.type = type; | 134 e.type = type; |
135 } | 135 } |
136 else | 136 else |