Thread overview
[Issue 5474] New: unaryFun byRef is borked for custom parameter name
Jan 22, 2011
Simen Kjaeraas
Jan 22, 2011
Simen Kjaeraas
Apr 13, 2011
David Simcha
January 22, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5474

           Summary: unaryFun byRef is borked for custom parameter name
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: patch
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: nobody@puremagic.com
        ReportedBy: simen.kjaras@gmail.com


--- Comment #0 from Simen Kjaeraas <simen.kjaras@gmail.com> 2011-01-22 01:43:41 PST ---
std.functional.unaryFun fails if byRef is true and parmName != "a".

Patch:

        static if (byRef)
        {
            Body!(ElementType).ReturnType result(ElementType)(ref ElementType
__a)
            {
                mixin("alias __a "~parmName~";");
                mixin(Body!(ElementType).code);
            }
        }

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 22, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5474


Simen Kjaeraas <simen.kjaras@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|enhancement                 |normal


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 22, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5474


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: -------
April 13, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5474


David Simcha <dsimcha@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
                 CC|                            |dsimcha@yahoo.com
         Resolution|                            |FIXED


--- Comment #1 from David Simcha <dsimcha@yahoo.com> 2011-04-12 17:29:33 PDT ---
https://github.com/D-Programming-Language/phobos/commit/1578be026e5a8c99036b41e01dafc857205bc2d7

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