On Sunday, 23 April 2017 at 20:34:12 UTC, Mike B Johnson wrote:
I'd like to get the symbolic name of the current function I'm invoid foo() { writeln(thisFunc.stringof()); // prints foo }I need something short, elegant and doesn't require modifying preexisting code... I'm sure D has something along those lines?
So something like __FUNCTION__ or __PRETTY_FUNCTION__ ? https://dlang.org/spec/traits.html#specialkeywords