Bug 17051 – [Programming in D for C Programmers] C supports anonymous structs; 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-01T12:59:00Z
Last change time
2017-06-16T01:37:56Z
Keywords
trivial
Assigned to
nobody
Creator
Gavin.Higham

Comments

Comment #0 by Gavin.Higham — 2017-01-01T12:59:07Z
C supports anonymous structs and unions since C11, so that section is now erroneous.
Comment #1 by greensunny12 — 2017-06-15T05:44:32Z
> Before C11 C didn't allow for anonymous structs or unions, which meant that dummy member names were necessary: The docs state this, don't they? Please feel free to reopen if you disagree or send a PR to correct this yourself.
Comment #2 by Gavin.Higham — 2017-06-16T01:37:56Z
I think the docs have been corrected since I opened this issue. Everything looks fine now :)