comparison dmd/IndexExp.d @ 113:3482c73a991b

More cleanup for arrays
author Eldar Insafutdinov <e.insafutdinov@gmail.com>
date Tue, 31 Aug 2010 23:57:32 +0100
parents 43073c7c7769
children e28b18c23469
comparison
equal deleted inserted replaced
112:3f02152c5e68 113:3482c73a991b
162 assert(0); 162 assert(0);
163 163
164 if (index < length) 164 if (index < length)
165 { 165 {
166 if (e1.op == TOKtuple) 166 if (e1.op == TOKtuple)
167 e = cast(Expression)te.exps.data[cast(size_t)index]; 167 e = te.exps[cast(size_t)index];
168 else 168 else
169 e = new TypeExp(e1.loc, Argument.getNth(tup.arguments, cast(size_t)index).type); 169 e = new TypeExp(e1.loc, Argument.getNth(tup.arguments, cast(size_t)index).type);
170 } 170 }
171 else 171 else
172 { 172 {