[Issue 5140] New: Add __FUNCTION__
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Oct 30 20:29:52 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5140
Summary: Add __FUNCTION__
Product: D
Version: unspecified
Platform: Other
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: jmdavisProg at gmx.com
--- Comment #0 from Jonathan M Davis <jmdavisProg at gmx.com> 2010-10-30 20:28:59 PDT ---
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: -------
More information about the Digitalmars-d-bugs
mailing list