www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8692] New: UFCS doesn't work with template alias parameter

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



---
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: -------
Sep 18 2012
parent d-bugmail puremagic.com writes:
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



*** 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: -------
Jan 02 2013