On Sun, Aug 17, 2008 at 06:27:35PM +0200, Isaac Lascasas wrote:
If you want to make a program that will let the user write "scripts" directly in c++, how will you do it? I am strugling my mind these days looking for a solution to this problem and I want to know if boost already address this situation. My intuition tells me that the process will probably consist on invoking bjam to build a dynamic lib with the "script" and then call the built code in the host binary. But how can this be done keeping it portable and clean? Obviously it won't work if you don't have a build environment configured but anyway it may be a very interesting feature.
There are some C++ interpreters, for example: Ch: http://www.softintegration.com/ CINT: http://root.cern.ch/twiki/bin/view/ROOT/CINT That is, if you really want _scripts_, i.e., instantaneous interpretation like. If you're looking for precompiled plugins, you don't have to look further than DLLs.