www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4674] New: Change std.typecons.alignForSize's signature to (string[] names...)

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4674

           Summary: Change std.typecons.alignForSize's signature to
                    (string[] names...)
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: kennytm gmail.com


--- Comment #0 from kennytm gmail.com 2010-08-18 04:51:16 PDT ---
By the Phobos doc, alignForSize's signature was chosen to be 

    char[] alignForSize(E...)(string[E.length] names); 

because of issue 2029. Now that 2029 is fixed, it should be possible to change
it back to 

    char[] alignForSize(E...)(string[] names...); 



In fact, the given example

    struct Banner {
       mixin(alignForSize!(byte[6], double)(["name", "height"]));
    }

won't even work on the current version of D as the array literal returns a
string[] instead of string[2].

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 18 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4674


Andrei Alexandrescu <andrei metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |andrei metalanguage.com
         AssignedTo|nobody puremagic.com        |andrei metalanguage.com


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 09 2011
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4674



--- Comment #1 from kennytm gmail.com 2011-03-06 12:37:26 PST ---
Fix provided in pull request #17.
https://github.com/D-Programming-Language/phobos/pull/17

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 06 2011
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4674


kennytm gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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