[Issue 2650] New: TypeInfo_Ak and similar do not inherit from TypeInfo_Array
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Feb 7 12:22:51 PST 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2650
Summary: TypeInfo_Ak and similar do not inherit from
TypeInfo_Array
Product: D
Version: 1.036
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: bugzilla at digitalmars.com
ReportedBy: dhasenan at gmail.com
TypeInfo_Array is never derived and is only used for struct and char arrays (as
far as I could tell). So you can't check if a type is an array type by casting
the typeinfo to TypeInfo_Array.
The following types represent arrays and should inherit from TypeInfo_Array:
TypeInfo_AC
TypeInfo_Ar
TypeInfo_Aq
TypeInfo_Ad
TypeInfo_Af
TypeInfo_Ag
TypeInfo_Ai
TypeInfo_Al
TypeInfo_Ae
TypeInfo_As
The remainder of the specifically-defined array types inherit from these.
--
More information about the Digitalmars-d-bugs
mailing list