From: William Djaja Tjokroaminata Date: 2002-08-09T22:04:07+09:00 Subject: Re: Is There an Inverse of 'rb_define_method'? Hi, In this case, then, instead of "rb_obj_method" which returns a VALUE, can we have another function which will return directly the function pointer itself? Because we are in the realm of C already, probably it is better to bypass Ruby VALUE intermediary. (In my Ruby-C world, the C side does not need to deal with VALUE unnecessarily; only when interfacing with the Ruby user the data needs to be converted into VALUE.) I have tried to dig into the Ruby internal struct's themselves, but they are very complicated, and without a standard function, this may cause segmentation fault later... Regards, Bill ============================================================================ nobu.nokada@softhome.net wrote: > Hi, VALUE method = rb_obj_method(obj, rb_intern("func_name")); rb_method_call(n, argv, method); > Wmm, they are not defined yet both, just *candidates* for new > features I imagined. > -- > Nobu Nakada