Getting symbol of current function?
Atila Neves
atila.neves at gmail.com
Fri Dec 7 17:13:11 UTC 2018
On Friday, 7 December 2018 at 16:45:00 UTC, angel wrote:
> On Friday, 7 December 2018 at 14:56:22 UTC, Stefan Koch wrote:
>> On Friday, 7 December 2018 at 10:51:38 UTC, Tomer Filiba wrote:
>>> [...]
>>
>> It'd be awesome to have symbol variables in general.
>>
>> I am currently looking into that :)
>
>
> When you are at it, look also at the "name" of the current
> lambda function, so that it can be called recursively.
writeln({ return " my name is " ~ __traits(identifier,
__traits(parent, {})); }());
More information about the Digitalmars-d
mailing list