anyone knows how to print __FUNCTION__ in D? and __LINE__

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

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

> __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 

More information about the Digitalmars-d-learn mailing list