[Issue 3720] Taking address of member functions possible without an instance

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 5 16:20:48 UTC 2017


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

--- Comment #13 from Mike Franklin <slavo5150 at yahoo.com> ---
> My preference would be to embed in the type of the function pointer, the
> fact that it takes a hidden context pointer. Then the compiler can disallow
> simply calling it without stuffing it into a delegate.

Is that different from (2) in comment 11?

--


More information about the Digitalmars-d-bugs mailing list