Voting: std.logger

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Wed Sep 10 09:55:22 PDT 2014


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:lupda8$nl1$1 at digitalmars.com...
>>> 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.


More information about the Digitalmars-d mailing list