Hi.

Im looking for a framework or some other means of un-/loading ruby code into
a live interpreter. Im thinking along the lines of TCLs interp command
here, which instanciates a new slave interpreter completely unrelated to
the main one, apart from a user-defined interface procs/methods. The slave
interpreter even can source other files and load binary libs without
affecting the main interpreter.

I guess it can be done via Threads and a sufficent high $SAFE value, though
that would still leave the possibility of polluting the namespace of other
threads, wouldn't it?

Reason for all this is a module system that takes class code from files in
order to extend functionality of the main program. Though i'd settle for a
working way of unloading cleanly without leaving stuff in namespace (if the
module author adheres to set interface regulations, of course).

Thanks.