[Issue 11593] New: Array type init syntax
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Nov 24 06:07:04 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11593
Summary: Array type init syntax
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: enhancement
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2013-11-24 06:07:03 PST ---
I think all the following forms should be accepted:
void main() {
auto i1 = int.init; // OK
auto s1 = string.init; // OK
auto a1 = int[].init; // Error
auto a2 = (int[]).init; // OK
auto aa1 = int[int].init; // Error
auto aa2 = (int[int]).init; // OK
}
See also Issue 6408
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list