From: nobu.nokada@... Date: 2004-06-10T14:02:36+09:00 Subject: Re: novice ruby embed question Hi, At Thu, 10 Jun 2004 12:57:43 +0900, Bill Kelly wrote in [ruby-talk:103030]: > I'd also like ruby not to call exit() as ruby_run() does, > when it's finished. Is it safe for me to just call > ruby_exec(), like: > > rb_load_protect(rb_str_new2("test.rb"), 0, &status); > if (status == 0) { > int state; > state = ruby_exec(); > } > > ...instead of ruby_run()? Is there a better way? Yes, it got provided for the sake of that usage. -- Nobu Nakada