You could make it work by making a copy of the vtbl[], modifying it as you
please, and seeing __vptr to it.
If you're trying to implement signals and slots, it's already in the library:
http://dlang.org/phobos/std_signals.html

You could make it work by making a copy of the vtbl[],
modifying it as you please, and seeing __vptr to it.
If you're trying to implement signals and slots, it's already
in the library:
http://dlang.org/phobos/std_signals.html

Thanks for the suggestion. I am working on open methods, not
signals. So far I've hijacked the 'deallocator' field but now I
am experimenting with a perfect hash of the vptr. Seems to work
quite well...