On Sat, Jun 25, 2011 at 6:53 PM, Louis Santillan <[email protected]> wrote:
> This sounds perfect for dynamically binding dlopen/dlsym functions. > Run tests on those types of functions? Any luck? > i haven't done that this this API because a primary design goal is to stay 100% header-only. The code which this code originally derived from makes heavy use of dlopen (but doesn't use dlsym) for plugins: http://code.google.com/p/v8-juice/wiki/Plugins http://code.google.com/p/v8-juice/source/browse/branches/edge/src/include/v8/juice/plugin.h and i've been using that plugin API, going back to about 2004, in at least half a dozen projects. dlsym, by the way, relies on officially Undefined Behaviour, and should be avoided like the plague (dlopen(), however, is kosher). Some years ago i wrote a fairly detailed article about implementing classloading in C++ without the use of dlsym (and with 100% type-safety): http://wanderinghorse.net/computing/papers/#classloading_cpp Happy Hacking! -- ----- stephan beal http://wanderinghorse.net/home/stephan/ -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
