>>>>> "W" == Wesley J Landaker <wjl / mindless.com> writes:

W> Has anyone had success embedding a ruby interpreter?

 Yes,

W> It seems straightforward enough, except for the fact that ruby_run() 
W> calls ruby_stop() when it finishes, which in turn calls exit() (which 
W> terminates the whole program!). This means that you can really only use 
W> ruby_run() *once* (and if you want to continue your program, you have 
W> to trap the exit...)

 In this case don't run ruby_run() :-), the goal of ruby_run() is precisely
 to run only once.

W> Other than a quick hack on the source tree to make it NOT do that (what 
W> I'm using now) is there some other way to make ruby_run() not call 
W> exit(), or is this just a bug that no one has run in to?

 In depend what you want to do, but you can look at
 rb_eval_string_protect(), rb_protect(), etc...


Guy Decoux