Why does stringof not like functions with arguments?

Meta via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Aug 10 10:17:00 PDT 2017


On Thursday, 10 August 2017 at 15:55:41 UTC, Jason Brady wrote:
> Wow. That makes perfect sense. I forgot stringof works only 
> with expressions

It works with symbols too. See the following:

template test(){}
pragma(msg, test.stringof);




More information about the Digitalmars-d-learn mailing list