Mercurial > projects > ddmd
comparison dmd/TypeSArray.d @ 154:14feb7ae01a6
* changed the build system to build a release version if the debug one compiles
and enabled warnings
+ reduced warnings by adding appriopriate overrides
+ IfStatement.interpret()
+ ScopeStatement.interpret()
+ TypeSArray.constConv()
+ TypedefDeclaration.syntaxCopy()
* fixed a bug in StringExp
author | trass3r |
---|---|
date | Wed, 15 Sep 2010 15:32:31 +0200 |
parents | af1bebfd96a4 |
children | 438eaa11eed4 |
comparison
equal
deleted
inserted
replaced
148:fe2e1b93e88f | 154:14feb7ae01a6 |
---|---|
353 return next.memalign(salign); | 353 return next.memalign(salign); |
354 } | 354 } |
355 | 355 |
356 override MATCH constConv(Type to) | 356 override MATCH constConv(Type to) |
357 { | 357 { |
358 assert(false); | 358 if (to.ty == Tsarray) |
359 { | |
360 TypeSArray tsa = cast(TypeSArray)to; | |
361 if (!dim.equals(tsa.dim)) | |
362 return MATCHnomatch; | |
363 } | |
364 return super.constConv(to); | |
359 } | 365 } |
360 | 366 |
361 override MATCH implicitConvTo(Type to) | 367 override MATCH implicitConvTo(Type to) |
362 { | 368 { |
363 //printf("TypeSArray.implicitConvTo(to = %s) this = %s\n", to.toChars(), toChars()); | 369 //printf("TypeSArray.implicitConvTo(to = %s) this = %s\n", to.toChars(), toChars()); |