[Issue 10842] auto return function not executed depending on how it's called

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Aug 17 18:58:30 PDT 2013


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



--- Comment #2 from thelastmammoth at gmail.com 2013-08-17 18:58:29 PDT ---
> If you change the return to an explicit expression, e.g. `return ""`, then the
> assert is triggered.

In my case I want to make it work with arbitrary types, not just strings, do
you have a suggestion for this?

(
I just posted a suggestion here:
http://forum.dlang.org/thread/mailman.160.1376790770.1719.digitalmars-d-learn@puremagic.com
"how to get enclosing function as symbol ? (eg: __function__.stringof
==__FUNCTION__)"
which would allow this among other things.
)

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