Voting: std.logger

Robert burner Schadek via Digitalmars-d digitalmars-d at puremagic.com
Wed Sep 10 01:47:45 PDT 2014


On Wednesday, 10 September 2014 at 07:41:49 UTC, Andrei 
Alexandrescu wrote:
> There may be a miscommunication here. In short:
>
> void fun(int x, string f = __FILE__)(double y);
>
> can be replaced with:
>
> void fun(int x)(double y, string f = __FILE__);
>
> Both work and the second produces fewer instantiations.
>
>
> Andrei

But

void fun(int l = __LINE__, A...)(A...); cannot be replaced by
void fun(A...)(A..., int l = __LINE__);

anyway thanks for reading and for trying to help


More information about the Digitalmars-d mailing list