On Saturday, 24 June 2017 at 08:08:33 UTC, ketmar wrote:
Meta wrote:

So I have no clue what I'm doing wrong. This is driving me insane.

aaaah. known $#^#$@^@%.

enum SymName = (&symbol).stringof[2..$]; // this, instead of symbol.stringof

dirty hack, let's hope that DMD devs won't change `.toString()` output (i.e. first two chars will always be "& ").

besides this, i know no other way to stop compiler from calling the function there.

It's dirty but I guess I'll have to go with this hack for the time being.

Also, I filed a bug:

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

Reply via email to