From: tokikenshi@... (Johan Persson) Date: 2002-11-22T01:15:52+09:00 Subject: Re: Questions about embedding Ruby in C ts wrote in message news:<200211210931.gAL9V5A16309@moulon.inra.fr>... > >>>>> "J" == Johan Persson writes: > > J> 1. How can I make Ruby not calling exit() when finished with a script? > > Just don't call ruby_run() > > J> 2. How does it come I can't see any output from the script I'm > J> running? Is it because Ruby decides to run it in a sub-shell or what? > > Well, you must give an example to see what you are trying to do. > > J> 3. Is it possible to make the interpreter use rubyated C-code from the > J> application who called it like an extension library? And if so, how? > > Look in RAA you have many examples > > > Guy Decoux ? 1. But if I don't call ruby_run(), how does it interpret? 2. When I am running a script, say with the line puts 'hello' from within my c-program, no 'hello' pops up on my term. 3. What I meaned was like: c program: VALUE ruby_func() { /* ... */ } void blah_blah() { ruby_init(); ruby_script("foo.rb"); ruby_run(); } foo.rb: # ... ruby_func # call ruby_func that appeared in the # ... # same app as the caller of ruby_run() Is this kind of operation possible? -Johan