From: Hans Mackowiak Date: 2013-03-05T14:37:20+09:00 Subject: Re: Extending Ruby. Little help or guidance if you are willing! change rb_intern_str(rb_str_new2("test")); into rb_intern("test"); you get the sym as VALUE, but you need an ID ... so do SYM2ID return SYM2ID(sym) == id ? Qtrue : Qfalse; PS: it would be good if you test if sym is really an symbol with SYMBOL_P ... otherwise you will get problems -- Posted via http://www.ruby-forum.com/.