On Monday, 8 September 2014 at 05:04:21 UTC, Jakob Ovrum wrote:
Function pointers can be converted to delegates through a simple wrapper function (which is how std.functional.toDelegate achieves it), but delegates cannot be wrapped by a function pointer without introducing additional parameters to the function in order to pass the context pointer.
Actually, this is possible using a trampoline.
