Extend the call site default argument expansion mechanism?

Timon Gehr timon.gehr at gmx.ch
Fri May 11 13:56:15 UTC 2018


On 10.05.2018 16:22, rikki cattermole wrote:
> On 11/05/2018 2:20 AM, Yuxuan Shui wrote:
>> On Thursday, 10 May 2018 at 14:17:50 UTC, rikki cattermole wrote:
>>> On 11/05/2018 2:15 AM, Yuxuan Shui wrote:
>>>> [...]
>>>
>>> Bad idea, too much magic.
>>
>> This magic is already there in D. I just want to use it in a different 
>> way.
> 
> The magic is not already in there.
> 
> __LINE__ and __MODULE__ are special, they are constants recognized by 
> the compiler and are immediately substituted if not specified.

Yes, that's essentially the definition of "magic".


More information about the Digitalmars-d mailing list