Mercurial > projects > ddmd
comparison dmd/TemplateTypeParameter.d @ 94:3a0b150c9841
Objects -> Vector!Object iteration 1
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Mon, 30 Aug 2010 23:00:34 +0100 |
parents | 2e2a5c3f943a |
children | 3482c73a991b |
comparison
equal
deleted
inserted
replaced
93:df6d0f967680 | 94:3a0b150c9841 |
---|---|
197 } | 197 } |
198 } | 198 } |
199 | 199 |
200 if (!t) | 200 if (!t) |
201 { | 201 { |
202 dedtypes.data[i] = cast(void*)ta; | 202 dedtypes[i] = ta; |
203 t = ta; | 203 t = ta; |
204 } | 204 } |
205 | 205 |
206 *psparam = new AliasDeclaration(loc, ident, t); | 206 *psparam = new AliasDeclaration(loc, ident, t); |
207 //printf("\tm = %d\n", m); | 207 //printf("\tm = %d\n", m); |
211 *psparam = null; | 211 *psparam = null; |
212 //printf("\tm = %d\n", MATCHnomatch); | 212 //printf("\tm = %d\n", MATCHnomatch); |
213 return MATCHnomatch; | 213 return MATCHnomatch; |
214 } | 214 } |
215 | 215 |
216 override void* dummyArg() | 216 override Object dummyArg() |
217 { | 217 { |
218 Type t; | 218 Type t; |
219 | 219 |
220 if (specType) | 220 if (specType) |
221 t = specType; | 221 t = specType; |
222 else | 222 else |
223 { | 223 { |
224 // Use this for alias-parameter's too (?) | 224 // Use this for alias-parameter's too (?) |
225 t = new TypeIdentifier(loc, ident); | 225 t = new TypeIdentifier(loc, ident); |
226 } | 226 } |
227 return cast(void *)t; | 227 return t; |
228 } | 228 } |
229 } | 229 } |