> Can you give a complete example of failure ? > > > ... > > pigeon% ruby -rtt -e 'p ({1 => 2}.ins)' > "{1=>2}" > pigeon% > > pigeon% ruby -rtt -e 'p ([1 , 2].ins)' > "[1, 2]" > pigeon% > ok, this works as 'inspect' is called inside an 'eval'. but i have to embedd ruby in C so i'd like to do this: ------ snip ------------ #include <ruby.h> #include <stdio.h> int main() { VALUE vAry,vStr; ruby_init(); vAry = rb_ary_new3(2,INT2FIX(3),INT2FIX(5)); vStr = rb_funcall(vAry,rb_intern("to_s"),0); printf ("to_s=<%s>\n",STR2CSTR(vStr)); vStr = rb_funcall(vAry,rb_intern("inspect"),0); printf ("inspect=<%s>\n",STR2CSTR(vStr)); return 0; } ------ snap ------------ ...resulting in: to_s=<35> ruby: [BUG] Segmentation fault ruby 1.6.3 (2001-03-28) [i386-linux] ciao, andi