What does the alias attribute do here

2014-02-04 Thread Gary Willoughby
What does the alias attribute do here: void foo(alias bar) { ... } What is the idea behind this attribute when used here?

Re: What does the alias attribute do here

2014-02-04 Thread Adam D. Ruppe
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

Re: What does the alias attribute do here

2014-02-04 Thread Gary Willoughby
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

Re: What does the alias attribute do here

2014-02-04 Thread Mike
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.