[Issue 8692] New: UFCS doesn't work with template alias parameter
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Sep 18 21:36:45 PDT 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 at puremagic.com
ReportedBy: r.97all at gmail.com
--- Comment #0 from Ryuichi OHORI <r.97all at 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: -------
More information about the Digitalmars-d-bugs
mailing list