From: Sean Middleditch Date: 2002-06-10T22:49:07+09:00 Subject: Re: multiple instances of Ruby interpreter in my C++ code? Ruby makes use of a lot of global values - there is no way of doing this in Ruby currently. What reason do you have for wanting multiple instances? There may be another way of accomplishing your goal(s). On Mon, 2002-06-10 at 09:42, Thorsten Scheuermann wrote: > Hi, > > I'm new to Ruby and am currently trying to embed Ruby in a C++ program. It > is pretty straightforward and I've already had some success with that. > However, what I really want is to have several independent instances of the > interpreter running. Lua for example makes this easy by encapsulating the > interpreter state in a C struct, but I didn't see that facility in Ruby. Is > there any way to accomplish this? > > -Thorsten Scheuermann