From: Suraj Kurapati Date: 2008-03-03T14:26:41+09:00 Subject: Re: [SOLVED] Ruby 1.9 - equivalent of ruby_run() ? Suraj Kurapati wrote: > In Ruby 1.9, there is a ruby_run_node() function instead, but I have not > been able to use it successfully. I tried: > > char* file = "foobar.rb"; > ruby_script(file); > rb_load_file(file); > ruby_run_node(NULL); // start the interpreter I hunted around in the Ruby 1.9.0 source code and found an example in load.c. The solution is to pass the return value of rb_load_file() to ruby_run_node(): char* file = "foobar.rb"; ruby_script(file); void* node = rb_load_file(file); ruby_run_node(node); // start the interpreter -- Posted via http://www.ruby-forum.com/.