September 19, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8692

           Summary: UFCS doesn't work with template alias parameter
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: r.97all@gmail.com


--- Comment #0 from Ryuichi OHORI <r.97all@gmail.com> 2012-09-18 21:37:44 PDT ---
In examples below these 5 lines are common:

module main;
import std.stdio : writeln;
void main()
{
    F!writeln("Hello ", "world!");
}


In http://dpaste.dzfl.pl/26f42047 , I wrote F using UFCS:
void F(alias f) (string x, string y)
{
    x.f(y);
}
which became an error.


// In http://dpaste.dzfl.pl/8f208239 , I wrote F normally:
void F(alias f) (string x, string y)
{
    f(x, y);
}
and it worked.

I see many UFCS issues here, sorry if this is duplicated.

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


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies@gmail.com
         Resolution|                            |DUPLICATE


--- Comment #1 from yebblies <yebblies@gmail.com> 2013-01-02 19:34:52 EST ---
*** This issue has been marked as a duplicate of issue 6185 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Top | Discussion index | About this forum | D home