[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Embedded ruby question

Photon 2038

8/23/2006 11:30:00 AM

I am developing an application in which Ruby is embedded in a C++
program that defines some native classes and methods and then calls
ruby_exec to run some script. The script calls the C++ methods and all
works well.

Now I want to be able to examine ruby expressions inside these C++
methods. I'm trying to call rb_eval_string but that only kills my
script run.
Is there a way to do this?

btw, the expressions are simple variable queries, but not necessarily
ones that fall into one of the rb_?var_get methods (i.e. local function
vars)


--
Posted via http://www.ruby-....