From: Michael Granger Date: 2003-12-23T06:39:52+09:00 Subject: Re: creating an object of a specific type On Dec 22, 2003, at 2:01 PM, Lyle Johnson wrote: > Elias Athanasopoulos wrote: >> Now I want, from a method of another class, to create a new Foo >> object, which contains nothing. > > What about: > > VALUE fooInstance; > fooInstance = rb_funcall(cFoo, "new", 0, NULL); > Or: #include VALUE fooInstance = rb_class_new_instance( 0, NULL, cFoo ); -- Michael Granger Rubymage, Believer, Architect The FaerieMUD Consortium