From: Hans Mackowiak Date: 2011-07-14T21:19:00+09:00 Subject: Re: [Ruby/C] Very little piece of code driving me crazy RSTRING(b)->as.heap.ptr looks funny ... i nont know if its okay.. use StringValueCStr(b) instat, or better use one of them: const char *rb_class2name(VALUE); // for classes const char *rb_obj_classname(VALUE); // for objects but be careful, this functions are not typesafe -- Posted via http://www.ruby-forum.com/.