On 2017-06-02 23:14, Seiji Emery wrote:
The main worry that I have is that this could somehow wreak havoc with the GC-managed payload pointer, but I'm not sure.
As long as you cast between different type of delegates I don't think it would be a problem. The context pointer is always void* regardless of the signature of the delegate.
-- /Jacob Carlborg