Shouldn't __FUNCTION__ return function name?

Andrea Fontana via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jul 28 08:05:11 PDT 2015


Check this code:
http://dpaste.dzfl.pl/a76db2cde13d

When __FUNCTION__ is called inside a foreach body, it appears to 
be:
f212.myFunction.__foreachbody1

Rather than:
f212.myFunction.

Is it correct?
How can I get the function name?


More information about the Digitalmars-d-learn mailing list