Bug 17052 – [Programming in D for C Programmers] C supports designated initialization; section is misleading

Status
RESOLVED
Resolution
WORKSFORME
Severity
enhancement
Priority
P3
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-01-01T13:06:00Z
Last change time
2017-06-16T01:39:51Z
Keywords
trivial
Assigned to
nobody
Creator
Gavin.Higham

Comments

Comment #0 by Gavin.Higham — 2017-01-01T13:06:43Z
C has supported designated initializers since C99, so the sections on union and struct initialization are incorrect.
Comment #1 by greensunny12 — 2017-06-15T05:45:42Z
> Designated initializers in C99 fix that issue. The docs state this, don't they? Please feel free to reopen this if you disagree or send a PR to fix it directly ;-)
Comment #2 by Gavin.Higham — 2017-06-16T01:39:51Z
Looks good now!