Is there a way to do 2-way linking?

Benjamin Thaut code at benjamin-thaut.de
Wed Feb 5 09:51:42 PST 2014


Am 05.02.2014 18:41, schrieb Jeroen Bollen:
> How exactly would that work for classes?

Once again, make an interface for all methods you want to be available.

interface IExposed
{
   void method1();
   void method2();
}

then pass that interface to the plugin. Because all interface methods 
are virtual function calls, the plugin does not have to know the 
location of these methods at link time.


More information about the Digitalmars-d mailing list