Summary: Add __FUNCTION__
--- Comment #0 from Jonathan M Davis <jmdavisp...@gmx.com> 2010-10-30 20:28:59
D has __FILE__ and __LINE__ which give the file and line number where they're
used. C/C++ has those as well, but (at least with some implementations) it also
has __FUNCTION__ which gives the name of the function where it's used, which
can be quite useful (especially when you use it in a logging message, and you
don't necessarily know which version of the program the message comes from).
So, I think that it would be benificial to add __FUNCTION__ to D. Honestly, I
was surprised when it wasn't in the language while __FILE__ and __LINE__ were.
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------