[Issue 2825] New: Guideline for semianonymous structs and unions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 9 07:18:28 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2825

           Summary: Guideline for semianonymous structs and unions
           Product: D
           Version: 2.027
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P3
         Component: www.digitalmars.com
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: maxmo at pochta.ru


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.


-- 



More information about the Digitalmars-d-bugs mailing list