On Wednesday, 10 September 2014 at 15:41:49 UTC, Timon Gehr wrote:
On 09/10/2014 03:22 PM, Daniel Murphy wrote:
"Jacob Carlborg" wrote in message news:[email protected]...
Could we modify the compiler to allow that? Just for the special identifiers __LINE__, __FILE__ and similar. It wouldn't be possible to
specify a value for that parameter then.

IIRC Andrei has a bugzilla open for this.

Why? I cannot remember a compiler version where the following did not work:

import std.stdio;
void fun(A...)(A args, int l = __LINE__){ writeln(args," ",l); }
void main(){ fun(1,2,3); }

I.e. there is absolutely no issue here.

This is new to me - I can definitely remember trying it and failing ~ 1-2 years ago.

Reply via email to