Mercurial > projects > ddmd
diff dmd/SliceExp.d @ 126:1765f3ef917d
ClassDeclarations, Arguments -> Vector
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Fri, 03 Sep 2010 23:25:55 +0100 |
parents | e28b18c23469 |
children | 60bb0fe4563e |
line wrap: on
line diff
--- a/dmd/SliceExp.d Fri Sep 03 22:17:54 2010 +0100 +++ b/dmd/SliceExp.d Fri Sep 03 23:25:55 2010 +0100 @@ -223,12 +223,12 @@ } else { - Arguments args = new Arguments; + auto args = new Arguments; args.reserve(j2 - j1); for (size_t i = j1; i < j2; i++) { - Argument arg = Argument.getNth(tup.arguments, i); - args.push(cast(void*)arg); + auto arg = Argument.getNth(tup.arguments, i); + args.push(arg); } e = new TypeExp(e1.loc, new TypeTuple(args)); } @@ -512,8 +512,8 @@ override Expression buildArrayLoop(Arguments fparams) { Identifier id = Identifier.generateId("p", fparams.dim); - Argument param = new Argument(STCconst, type, id, null); - fparams.shift(cast(void*)param); + auto param = new Argument(STCconst, type, id, null); + fparams.shift(param); Expression e = new IdentifierExp(Loc(0), id); Expressions arguments = new Expressions(); Expression index = new IdentifierExp(Loc(0), Id.p);