[Issue 3826] New: init of fixed sized arrays

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 18 12:36:31 PST 2010


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

           Summary: init of fixed sized arrays
           Product: D
           Version: 2.040
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: sean at invisibleduck.org
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2010-02-18 12:36:30 PST ---
import std.stdio: writeln;
void main() {
    alias int[2] T;
    writeln(T.init);
}

I'd like this program has to print [0,0] instead of 0, otherwise generic code
that uses ".init" breaks (I have had to create a function that avoids me to
special-cases such arrays).

-- 
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