comparison dmd/TypeSlice.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
comparison
equal deleted inserted replaced
125:767a01c2a272 126:1765f3ef917d
77 { 77 {
78 error(loc, "slice [%ju..%ju] is out of range of [0..%u]", i1, i2, tt.arguments.dim); 78 error(loc, "slice [%ju..%ju] is out of range of [0..%u]", i1, i2, tt.arguments.dim);
79 return Type.terror; 79 return Type.terror;
80 } 80 }
81 81
82 Arguments args = new Arguments; 82 auto args = new Arguments;
83 args.reserve(cast(size_t)(i2 - i1)); 83 args.reserve(cast(size_t)(i2 - i1));
84 for (size_t i = cast(size_t)i1; i < cast(size_t)i2; i++) 84 for (size_t i = cast(size_t)i1; i < cast(size_t)i2; i++)
85 { 85 {
86 Argument arg = cast(Argument)tt.arguments.data[i]; 86 auto arg = tt.arguments[i];
87 args.push(cast(void*)arg); 87 args.push(arg);
88 } 88 }
89 89
90 return new TypeTuple(args); 90 return new TypeTuple(args);
91 } 91 }
92 92