anyone knows how to print __FUNCTION__ in D? and __LINE__

Jarrett Billingsley kb3ctd2 at yahoo.com
Mon Aug 14 07:54:42 PDT 2006


"Oskar Linde" <oskar.lindeREM at OVEgmail.com> wrote in message 
news:ebpvni$2l64$1 at digitaldaemon.com...

> __LINE__ works in D too. I'm not sure if __FUNCTION__ has much use in D, 
> as D lacks macros that could make use of it. (Evaluate it at the place of 
> macro expansion).

In addition, you can find the list of all supported special tokens at 
http://www.digitalmars.com/d/lex.html#specialtokens. 





More information about the Digitalmars-d-learn mailing list