[Issue 9803] New: minimallyInitializedArray fails past "1D" depth

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 23 15:16:13 PDT 2013


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

           Summary: minimallyInitializedArray fails past "1D" depth
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: monarchdodra at gmail.com


--- Comment #0 from monarchdodra at gmail.com 2013-03-23 15:16:12 PDT ---
Example:

//----
    alias T1 = int*[];   //1D
    alias T2 = int*[][]; //2D
    auto t1 = minimallyInitializedArray!T1(10); //Works
    auto t2 = minimallyInitializedArray!T2(10, 10); //Fails
    foreach (p; t1)
        assert(p is null); //OK
    foreach (arr; t2)
        foreach (p; arr)
            assert(p is null); //Fails
//----

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list