Help me escape optional parens hell

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jun 24 01:08:33 PDT 2017


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.


More information about the Digitalmars-d-learn mailing list