Linux Dynamic Loading of shared libraries
Tolga Cakiroglu
tcak at pcak.com
Sun Mar 9 07:09:26 PDT 2014
>
> Now suppose that my D shared library contains a class, rather
> that just module ctors/dtors, how do I go about creating an
> instance of that class and using its methods?
>
> Steve
For this, you create an "Interface" that matches to the method
declaration of your class. But notice that instead of defining
methods, you will define attributes those types' match to that
class's methods. I did this before and it works. At least with
Posix "dlsym" function's help.
More information about the Digitalmars-d-learn
mailing list