From: Elias Athanasopoulos Date: 2003-12-23T06:26:49+09:00 Subject: Re: creating an object of a specific type On Tue, Dec 23, 2003 at 06:01:53AM +0900, Lyle Johnson 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); > > Hope this helps, It does. Thank you. I wonder if it is complex enough to do the above purely in C via the Ruby API (it would be faster, I guess). Regards, -- University of Athens I bet the human brain Physics Department is a kludge --Marvin Minsky