Mercurial > projects > ddmd
comparison dmd/TypeSArray.d @ 64:4290d870944a
More fixes
author | korDen |
---|---|
date | Mon, 23 Aug 2010 20:29:15 +0400 |
parents | b7d29f613539 |
children | f708f0452e81 |
comparison
equal
deleted
inserted
replaced
63:cab4c37afb89 | 64:4290d870944a |
---|---|
1 module dmd.TypeSArray; | 1 module dmd.TypeSArray; |
2 | 2 |
3 import dmd.TypeArray; | 3 import dmd.TypeArray; |
4 import dmd.TypeInfoStaticArrayDeclaration; | |
4 import dmd.TypeAArray; | 5 import dmd.TypeAArray; |
5 import dmd.MOD; | 6 import dmd.MOD; |
6 import dmd.Argument; | 7 import dmd.Argument; |
7 import dmd.TypeIdentifier; | 8 import dmd.TypeIdentifier; |
8 import dmd.TemplateParameter; | 9 import dmd.TemplateParameter; |
328 return e; | 329 return e; |
329 } | 330 } |
330 | 331 |
331 bool isString() | 332 bool isString() |
332 { | 333 { |
333 assert(false); | 334 TY nty = next.toBasetype().ty; |
335 return nty == Tchar || nty == Twchar || nty == Tdchar; | |
334 } | 336 } |
335 | 337 |
336 bool isZeroInit(Loc loc) | 338 bool isZeroInit(Loc loc) |
337 { | 339 { |
338 return next.isZeroInit(loc); | 340 return next.isZeroInit(loc); |
573 return MATCHnomatch; | 575 return MATCHnomatch; |
574 } | 576 } |
575 | 577 |
576 TypeInfoDeclaration getTypeInfoDeclaration() | 578 TypeInfoDeclaration getTypeInfoDeclaration() |
577 { | 579 { |
578 assert(false); | 580 return new TypeInfoStaticArrayDeclaration(this); |
579 } | 581 } |
580 | 582 |
581 Expression toExpression() | 583 Expression toExpression() |
582 { | 584 { |
583 assert(false); | 585 assert(false); |