Typecasting delegates

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Sat Jun 3 08:29:02 PDT 2017


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


More information about the Digitalmars-d mailing list