comparison dmd/Cast.d @ 63:cab4c37afb89

A bunch of implementations
author korDen
date Mon, 23 Aug 2010 16:52:24 +0400
parents 10317f0c89a5
children 43073c7c7769
comparison
equal deleted inserted replaced
62:6557375aff35 63:cab4c37afb89
124 VarDeclaration v = s.isVarDeclaration(); 124 VarDeclaration v = s.isVarDeclaration();
125 assert(v); 125 assert(v);
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 == 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(cast(void*)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;