Hi,
Thanks for your response. The reason I asked is because usually when I
know the class, I can write it in C as
rb_funcall (rb_cKlass, rb_intern ("the operator"), n, ...);
Can you help to write the statement
func1 (arg1, &arg2)
in C? I am still struggling on how to covert this Proc "&" operator to
C. (Well, everything else fails, there is always that
"rb_eval_string()" ultimate weapon :) )
Regards,
Bill
==========================================================================
Reimer Behrends <behrends / cse.msu.edu> wrote:
> William Djaja Tjokroaminata (billtj / y.glue.umd.edu) wrote:
> [...]
>> Logically, does this "&" operator belong to the Proc class, the Object
>> class, or the Kernel module?
> It is not a standard operator like "+" that is converted into a method
> call (and thus can't be redefined, either), so it isn't listed as part
> of the Proc class. "&" is essentially syntactic sugar to tell the
> compiler to use the Proc object as a block, much like the "*" prefix is
> used with arrays to handle a variable number of arguments.
> Reimer Behrends