Mercurial > projects > ddmd
comparison dmd/TemplateDeclaration.d @ 126:1765f3ef917d
ClassDeclarations, Arguments -> Vector
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Fri, 03 Sep 2010 23:25:55 +0100 |
parents | 347de076ad34 |
children | e6e542f37b94 |
comparison
equal
deleted
inserted
replaced
125:767a01c2a272 | 126:1765f3ef917d |
---|---|
836 * type identifiers. | 836 * type identifiers. |
837 * Set the index of this function parameter to fptupindex. | 837 * Set the index of this function parameter to fptupindex. |
838 */ | 838 */ |
839 for (fptupindex = 0; fptupindex < nfparams; fptupindex++) | 839 for (fptupindex = 0; fptupindex < nfparams; fptupindex++) |
840 { | 840 { |
841 Argument fparam = cast(Argument)fparameters.data[fptupindex]; | 841 auto fparam = fparameters[fptupindex]; |
842 if (fparam.type.ty != Tident) | 842 if (fparam.type.ty != Tident) |
843 continue; | 843 continue; |
844 TypeIdentifier tid = cast(TypeIdentifier)fparam.type; | 844 auto tid = cast(TypeIdentifier)fparam.type; |
845 if (!tp.ident.equals(tid.ident) || tid.idents.dim) | 845 if (!tp.ident.equals(tid.ident) || tid.idents.dim) |
846 continue; | 846 continue; |
847 | 847 |
848 if (fvarargs) // variadic function doesn't | 848 if (fvarargs) // variadic function doesn't |
849 goto Lnomatch; // go with variadic template | 849 goto Lnomatch; // go with variadic template |