From: Elias Athanasopoulos Date: 2003-12-13T19:09:32+09:00 Subject: Re: passing a func to a ruby func On Wed, Dec 10, 2003 at 08:12:00AM +0900, Tim Hunter wrote: > Presumably `foo' calls the function pointed to by `f' and you want `f' to > point to a Ruby method. The way to do this is to write an intermediate C > function `func'. Pass `func's address to `foo'. When `foo' calls `func', > `func' translates the C arguments to Ruby objects and calls the > appropriate Ruby method via rb_funcall or something. Or, `func' could call > a user-supplied Proc object. `func' can in turn convert the value returned > from whatever it calls to a C type and then return that value to `foo'. Thanks. I can now get the whole picture. Regards, -- University of Athens I bet the human brain Physics Department is a kludge --Marvin Minsky