What does the alias attribute do here:
void foo(alias bar)
{
...
}
What is the idea behind this attribute when used here?
On Tuesday, 4 February 2014 at 17:09:02 UTC, Gary Willoughby
wrote:
What does the alias attribute do here:
void foo(alias bar)
This specifically won't compile, alias params are only allowed in
a compile-time list. So
void foo(alias bar)() { ... }
would work.
Anyway, what it do
On Tuesday, 4 February 2014 at 17:17:13 UTC, Adam D. Ruppe wrote:
On Tuesday, 4 February 2014 at 17:09:02 UTC, Gary Willoughby
wrote:
What does the alias attribute do here:
void foo(alias bar)
This specifically won't compile, alias params are only allowed
in a compile-time lis
On Tuesday, 4 February 2014 at 17:17:13 UTC, Adam D. Ruppe wrote:
This specifically won't compile, alias params are only allowed
in a compile-time list. So
void foo(alias bar)() { ... }
would work.
[...]
Thanks, Adam, for the thorough explanation. This was quite
helpful for me as well.