My code is behaving different, when im doing this change:

  # (a)
  VALUE self = rb_class_new_instance(a.n, a.argv, klass);
 
to:

  # (b) 
  VALUE self = rb_funcall2(klass, rb_intern("new"), a.n, a.argv);


What is the difference ???



Problem: with (a) then we cannot inheirit from a SWIG class.
Solution: with (b) then inheiritance works fine.


Why does this make a difference ???

--
Simon Strandgaard