From: ts Date: 2002-06-10T23:25:33+09:00 Subject: Re: multiple instances of Ruby interpreter in my C++ code? >>>>> "T" == Thorsten Scheuermann writes: T> I don't want the scripts to actually share the variable x. They should be T> visible only in the scope of the particular script. Maybe there's a way of T> wrapping these scripts inside a Ruby module through a preprocessor so that T> they are isolated from each other? If you can solve the thread problem, then load your script with rb_load_protect(rb_str_new2("script"), Qtrue, &state) the script will be run in an anonymous module Guy Decoux