basically what you want to do is dynamic name resolution (i.e. look an object up by name at runtime).
Depending on which language you use, this is more or less easy and/or portable.
For C: google for dl, dlopen; non-portable
For python:
help(__import__)
plugins[name] = __import__(name)
If you're enthusiastic, look at the python source to see how it handles imports of .so/.dll-files; I'm afraid you might find out that it's just an ifdef, though.
hth --Jonas
PS. for C++, have a look at yacas (@sourceforge)
|