[Issue 12773] Compiler implicitly converts delegate into function when taking an address of a method

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Jun 4 12:49:46 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=12773

--- Comment #1 from Orvid King <blah38621 at gmail.com> ---
I suspect you meant to suggest removing the implicit conversion of &C.bar (a 
delegate) to a function pointer. I would agree with this, and am extremely 
surprised this is allowed in the first place. Perhaps it was an attempt to 
implement implicit conversion from a function pointer to a delegate? (which 
does make sense to be possible)

--


More information about the Digitalmars-d-bugs mailing list