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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from [email protected] 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: -------