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