[Issue 9365] Allow partially specified template aliases
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jun 9 23:35:11 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9365
--- Comment #4 from Peter Alexander <peter.alexander.au at gmail.com> 2013-06-09 23:35:09 PDT ---
(In reply to comment #3)
> Something like
>
> alias A(T) = B!(x, T);
>
> Is more likely and more flexible.
See my use case, with your suggestions, this wouldn't work:
alias equalRoR = equal!equal;
An alternative suggestion, is to change how function templates are expanded.
Currently we have:
void foo(A, B)(A a, B b)
expanding to
template foo(A, B)
{
void foo(A a, B b);
}
If instead, it expanded to:
template foo(A)
{
template foo(B)
{
void foo(A a, B b);
}
}
Then foo!int becomes a valid, alias-able symbol, which would solve the problem
as well.
--
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