[Issue 10822] Need a way to get the address of a lambda function from within its body

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Aug 14 15:38:17 PDT 2013


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



--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-08-14 15:38:16 PDT ---
(In reply to comment #0)
> theSignal.disconnect(__traits(addressOfThis));

I did just realize that addressOfThis would have to return a typed pointer
(e.g. void delegate(...) or void function(...)) rather than a vanilla void*, so
addressOfThis is likely a bad name. A better concept name might be a getThis
trait, where the trait returns the typed reference.

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