From: Saumya Dikshit Date: 2006-09-05T21:06:49+09:00 Subject: calling method defined in ruby script from external world ------=_Part_17052_28866016.1157458006532 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline How can we make C routine call a "method" defined in a ruby script ? I am familiar with extending ruby to call C routines with/without swig. But I was not able to find a easy solution for it. The only way it may workout is spawning the script in a different process/thread from C code and then make it do all query/answer sequence by calling a C routine. Is there a easy way out? Can't we make a C routine call a specific method in a Ruby Script. Can we access a C stack from Ruby or vice versa while debugging the Ruby extension. Regards, Saumzy. ------=_Part_17052_28866016.1157458006532--