Mercurial > projects > ddmd
comparison dmd/TupleExp.d @ 113:3482c73a991b
More cleanup for arrays
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Tue, 31 Aug 2010 23:57:32 +0100 |
parents | 39648eb578f6 |
children | e28b18c23469 |
comparison
equal
deleted
inserted
replaced
112:3f02152c5e68 | 113:3482c73a991b |
---|---|
86 super(loc, TOKtuple, TupleExp.sizeof); | 86 super(loc, TOKtuple, TupleExp.sizeof); |
87 exps = new Expressions(); | 87 exps = new Expressions(); |
88 type = null; | 88 type = null; |
89 | 89 |
90 exps.reserve(tup.objects.dim); | 90 exps.reserve(tup.objects.dim); |
91 for (size_t i = 0; i < tup.objects.dim; i++) | 91 foreach (o; tup.objects) |
92 { | 92 { |
93 Object o = cast(Object)tup.objects.data[i]; | |
94 if (auto e = cast(Expression)o) | 93 if (auto e = cast(Expression)o) |
95 { | 94 { |
96 e = e.syntaxCopy(); | 95 e = e.syntaxCopy(); |
97 exps.push(e); | 96 exps.push(e); |
98 } | 97 } |