[Issue 17546] Cannot call .stringof on a function symbol if it does not have a no-args overload

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Jun 26 08:55:03 PDT 2017


https://issues.dlang.org/show_bug.cgi?id=17546

--- Comment #2 from Steven Schveighoffer <schveiguy at yahoo.com> ---
(In reply to monkeyworks12 from comment #0)
> Currently I am resorting to a hacky workaround by doing
> `(&test).stringof[2..$]`.

I've found another possible workaround:

__traits(identifier, test); // compile time literal of "test"

--


More information about the Digitalmars-d-bugs mailing list