[Issue 17080] Can assign member-function-ptr to free-function-ptr

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jan 13 06:23:04 PST 2017


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

Dicebot <public at dicebot.lv> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |public at dicebot.lv

--- Comment #5 from Dicebot <public at dicebot.lv> ---
(In reply to Sprink from comment #4) 
> It is the same issue. If issue 3720 is fixed, then this issue wouldn't exist.

It is related to 3720 but, contrary to 3720, it can be fixed by simply typing
`&S.fun` as a delegate (with null context ptr). Fixing 3720 as a whole is much
more delicate matter which I'd prefer to not touch at this context.

--


More information about the Digitalmars-d-bugs mailing list