Mercurial > projects > ddmd
diff dmd/ArrayExp.d @ 84:be2ab491772e
Expressions -> Vector!Expression
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Mon, 30 Aug 2010 16:12:19 +0100 |
parents | 2e2a5c3f943a |
children | 39648eb578f6 |
line wrap: on
line diff
--- a/dmd/ArrayExp.d Mon Aug 30 18:42:04 2010 +0400 +++ b/dmd/ArrayExp.d Mon Aug 30 16:12:19 2010 +0100 @@ -56,14 +56,12 @@ } // Run semantic() on each argument - for (size_t i = 0; i < arguments.dim; i++) + foreach (size_t i, Expression e; arguments) { - e = cast(Expression)arguments.data[i]; - e = e.semantic(sc); if (!e.type) error("%s has no value", e.toChars()); - arguments.data[i] = cast(void*)e; + arguments[i] = e; } expandTuples(arguments);