alias template parameter
Sergei Nosov
sergei.nosov at gmail.com
Fri Jun 21 07:08:42 PDT 2013
Hi!
I've been thinking about how alias template parameters work and
I'm really confused =)
It makes perfect sense for literals, names, etc. But what I can't
get is how does it work for delegates.
If I have a function
auto apply(alias fun, T...)(T args)
{
return fun(args);
}
And then I have
int y = 2;
apply!(x => y)(1);
How in the world does this work? Is the context address known at
compile-time?
More information about the Digitalmars-d-learn
mailing list