www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2825] New: Guideline for semianonymous structs and unions

reply d-bugmail puremagic.com writes:
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 digitalmars.com
        ReportedBy: maxmo 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.


-- 
Apr 09 2009
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2825


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
                 CC|                            |andrej.mitrovich gmail.com
         AssignedTo|nobody puremagic.com        |andrej.mitrovich gmail.com


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2012-12-02
05:39:30 PST ---
https://github.com/D-Programming-Language/d-programming-language.org/pull/202

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 02 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2825



--- Comment #2 from github-bugzilla puremagic.com 2012-12-02 08:14:02 PST ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 02 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2825


Alex Rønne Petersen <alex lycus.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |alex lycus.org
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 02 2012