As @nojb said, Dynlink is a suitable tool for this feature.
If plugins need ad hoc polymorphism, the natural way is to use OOP (this is what I do in Graffophone). However, It may be possible to use Kantian’s solution.
1 Like