----- Original Message ----- 
From: "Chris Pine" <nemo / hellotree.com>

Maybe I'm not understanding, but can't you just call `new' on the class you
want to instantiate?
----------------------------

Sorry if that was too short as to be unhelpful.  What I meant was that, if
you have the class object on the C side, you can just call `new' on it with
one of these:

  rb_funcall
  rb_funcall2
  rb_funcall3
  rb_apply

You will need to get the id for `new' first, with this:

  new_id = rb_intern ("new");

Most of this is on page 193 of the pickaxe.


Or, you could just do this (which is slower):

  rb_eval_string ("YourRubyClass.new");

Chris