From: nobu.nokada@... Date: 2004-06-22T06:37:51+09:00 Subject: Re: opening a file in ext Hi, At Tue, 22 Jun 2004 06:26:39 +0900, Sean O'Dell wrote in [ruby-talk:104279]: > > This should work: > > > > return rb_funcall(rb_cFile, rb_intern(":new"), rb_str_new2("filename")); > > Oops, try: > > return rb_funcall(rb_cFile, rb_intern(":new"), 1, rb_str_new2("filename")); rb_intern(":new") differs from rb_intern("new"). You also can use rb_class_new_instance() instead. return rb_class_new_instance(1, rb_str_new2("filename"), rb_cFile); -- Nobu Nakada