comparison dmd/ForeachStatement.d @ 90:39648eb578f6

more Expressions work
author Eldar Insafutdinov <e.insafutdinov@gmail.com>
date Mon, 30 Aug 2010 20:27:56 +0100
parents be2ab491772e
children acd69f84627e
comparison
equal deleted inserted replaced
88:23280d154c5b 90:39648eb578f6
173 { 173 {
174 size_t k = (op == TOK.TOKforeach) ? j : n - 1 - j; 174 size_t k = (op == TOK.TOKforeach) ? j : n - 1 - j;
175 Expression e; 175 Expression e;
176 Type t; 176 Type t;
177 if (te) 177 if (te)
178 e = cast(Expression)te.exps.data[k]; 178 e = te.exps[k];
179 else 179 else
180 t = Argument.getNth(tuple.arguments, k).type; 180 t = Argument.getNth(tuple.arguments, k).type;
181 181
182 Argument arg = cast(Argument)arguments.data[0]; 182 Argument arg = cast(Argument)arguments.data[0];
183 Statements st = new Statements(); 183 Statements st = new Statements();