The delegate union is a conveniant way to setup non gc delegates that are compatible with D delegates.
Helper to call the delegate without accessing dg.
Defines the delegate layout as defined in the D ABI
Allows to use this union as a true D delegate.
/ The delegates members;
struct Foo { bool fun(){return true;} } Foo foo; Delegate!(typeof(&Foo.fun)) atFun; atFun.ptr = &foo, atFun.funcptr = &Foo.fun, assert(atFun());
See Implementation
The delegate union is a conveniant way to setup non gc delegates that are compatible with D delegates.