From: Brian Campbell Date: 2006-08-02T10:28:24+09:00 Subject: Re: Embedded Ruby Question Hi Timothy, Thanks for the reply! Yes, I have the Pickaxe 2. Unfortunately, it doesn't describe/document, what I need to do. It describes how to embed the interpreter, call/execute Ruby from an existing file, extend Ruby via C/C++, but it does not describe how to pass a string that is Ruby code from C++ to the interpreter and have it execute. That's what I need. Thanks. -Brian -------------------- Brian E Campbell becampbel@hotmail.com >From: "Timothy Goddard" >Reply-To: ruby-talk@ruby-lang.org >To: ruby-talk@ruby-lang.org (ruby-talk ML) >Subject: Re: Embedded Ruby Question >Date: Wed, 2 Aug 2006 09:50:10 +0900 > >There's a good section on embedding Ruby in the Pickaxe 2. You have to >be extremely careful with some aspects of it, especially if you use >threads (the Ruby interpreter is not currently thread safe). > >Brian Campbell wrote: > > Hi all, > > > > I want to embed Ruby in my C++ application. I'd like to read one or >more > > Ruby scripts stored in my RDBMS, pass the Ruby script as a string (not a > > file name) to the interpreter, and have it execute the code. Is this > > possible? If so, is there a URL that describes how to do this or shows >an > > example? > > > > Thanks! > > > > -Brian > > > > -------------------- > > Brian E Campbell > > becampbel@hotmail.com > >