Is there a C function for creating a instance of a given class by passing N arguments?

Hi, sure I miss something in the Ruby MRI C API, but I don’t find a
function like:

VALUE object = rb_new_instance(VALUE klass, int num_args, …)

Does it exist? or should I use rb_funcall() ?

Thanks a lot.

On Jun 13, 2012, at 10:12, Iaki Baz C. wrote:

Hi, sure I miss something in the Ruby MRI C API, but I don’t find a
function like:

VALUE object = rb_new_instance(VALUE klass, int num_args, …)

Does it exist? or should I use rb_funcall() ?

rb_class_new_instance()

2012/6/14 Eric H. [email protected]:

rb_class_new_instance()

Great, thanks a lot.