From: hatespyware@... (anon luker) Date: 2004-03-01T17:09:47+09:00 Subject: Re: embedding? Eric Smith wrote in message news:... > >> Is it possible to create multiple independent Ruby interpreter contexts? > > I still haven't found any way to do that. I'm a bit out of my element on this one, but I don't believe it is generally possible. I have seen somewhere, although I unfortunately have no reference, that it is also between impractical and impossible to "reset" an embedded interpreter by destroying and recreating an embedded instance. Finally, since Ruby does not use native threading, embedded scripts may not be properly discouraged from using broken threading constructs. All of these factors (plus regex licensing, last I heard) seem to strongly encourage extending over embedding. The biggest drawback would be the case where you wish to make multiple scripting interfaces/languages avaliable to your application. If your app supports Windows, COM is almost certainly your best option. I don't think there is anything else as elegant or effective.