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

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Jan 15 21:33:22 PST 2017


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

--- Comment #8 from Sprink <sprink.noreply at gmail.com> ---
Why bother fixing this issue by just changing the type to a delegate? You are
just making a temporary fix that has the potential to break code out there.
Then you are just going to have to cause the same breakage when the actual
underlying issue is fixed. This really shouldn't be half-assed.

If you are going to do anything, make taking the address of a member function
without an object an error. That way it'll cause the same breakage but then
people won't continue to use it and won't cause a second breakage.

--


More information about the Digitalmars-d-bugs mailing list