[Issue 2218] New: "builtin" typeinfos for arrays of basic types do not inherit TypeInfo_Array

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 11 12:00:13 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=2218

           Summary: "builtin" typeinfos for arrays of basic types do not
                    inherit TypeInfo_Array
           Product: D
           Version: 1.029
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: tomas at famolsen.dk


This is mostly just an inconsistency, but it does break some kinds of code.
Namely dynamically casting for stuff like:

auto ati = cast(TypeInfo_Array)typeid(int[]);
assert(ati !is null); // fails

Trivial to fix, just inherit from TypeInfo_Array instead of TypeInfo in the
internal typeinfo directory.

Probably this issue has been around forever!


-- 



More information about the Digitalmars-d-bugs mailing list