Bug 2825 – Guideline for semianonymous structs and unions

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P3
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2009-04-09T09:18:00Z
Last change time
2015-06-09T01:18:04Z
Keywords
pull
Assigned to
andrej.mitrovich
Creator
dfj1esp02

Comments

Comment #0 by dfj1esp02 — 2009-04-09T09:18:33Z
the following doesn't translate straightforwardly to D ---- union Info { struct { char *Name; } File; }; ---- Ona can write ---- union Info { struct File { char *Name; } } ---- But it's not the same. I think, the case should be considered in docs, and a translation guideline should be added.
Comment #1 by andrej.mitrovich — 2012-12-02T05:39:30Z
Comment #2 by github-bugzilla — 2012-12-02T08:14:02Z
Commits pushed to master at https://github.com/D-Programming-Language/d-programming-language.org https://github.com/D-Programming-Language/d-programming-language.org/commit/429d5f350c087fb2beb123d8fe04a69c1213118d Fixes Issue 2825 - Add note about C anon struct variables. https://github.com/D-Programming-Language/d-programming-language.org/commit/1d9b7daa97d5266a0ceb1b2db7ae811ee8cc9de4 Merge pull request #202 from AndrejMitrovic/Fix2825 Fixes Issue 2825 - Add note about C anon struct variables.