On Wednesday, 29 July 2015 at 20:20:47 UTC, Adel Mamin wrote:
void my_func(auto arr)
{
writeln(arr);
}
There are no `auto` parameters in D. You have to make it a template explicitly:
----
void my_func(A)(A arr)
{
writeln(arr);
}
----
anonymous via Digitalmars-d-learn Wed, 29 Jul 2015 13:40:29 -0700
On Wednesday, 29 July 2015 at 20:20:47 UTC, Adel Mamin wrote:
void my_func(auto arr)
{
writeln(arr);
}
There are no `auto` parameters in D. You have to make it a template explicitly:
----
void my_func(A)(A arr)
{
writeln(arr);
}
----