Bug 11593 – Array type init syntax

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-11-24T06:07:03Z
Last change time
2024-12-13T18:14:17Z
Keywords
rejects-valid
Assigned to
No Owner
Creator
bearophile_hugs
Moved to GitHub: dmd#18719 →

Comments

Comment #0 by bearophile_hugs — 2013-11-24T06:07:03Z
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
Comment #1 by robert.schadek — 2024-12-13T18:14:17Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18719 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB