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

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Jan 11 10:33:22 PST 2017


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

Marenz <dlang at supradigital.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|DUPLICATE                   |---

--- Comment #3 from Marenz <dlang at supradigital.org> ---
I have been encouraged by Uplink|DMD to reopen this issue as it differs in a
few aspects to the one it is marked a duplicate of:

The issue 3720 should still compile because there isn't anything wrong with
taking the address of a delegate, even without the instance (it would simply
have .this (or whatever the name is) set to null.

My example however shows an implicit conversion from function -> delegate and
that should in no case compile.

--


More information about the Digitalmars-d-bugs mailing list