anyone knows how to print __FUNCTION__ in D? and __LINE__
Oskar Linde
oskar.lindeREM at OVEgmail.com
Mon Aug 14 06:59:23 PDT 2006
davidl wrote:
>
> in c we can print __FUNCTION__ __LINE__ to indicate where we are. in D
> how to do, couldn't find.....
> --使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/
__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).
/Oskar
More information about the Digitalmars-d-learn
mailing list