> J> So how to call a function from the loaded file...

Funny thing, cause I got it working now. What I do is I load the script
file using rb_load_file. Then I call ruby_exec. After that I start
defining the classes and global objects/functions the scripts can use.

And with eval_string I can call the functions defined in the script
(such as register_functions and the registered functions themselfs :))

So I hope this is a good way to do this.

Jesse