[Issue 5140] Add __FUNCTION__ and __PRETTY_FUNCTION__

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jan 11 12:31:41 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=5140



--- Comment #17 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-01-11 12:31:38 PST ---
(In reply to comment #16)
> (In reply to comment #15)
> 
> > If either of these is called in module scope (e.g. enum which is initialized
> > with UFCS), it will return an empty string.
> 
> A question: isn't it better to give a compilation error in this case, instead
> of returning an empty result?

No, because it would make the function unusable in CTFE in some contexts.

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