Hi,

In message "Re: rb_hash_aref and symbol keys"
    on Fri, 7 Apr 2006 23:28:17 +0900, Andre Nathan <andre / digirati.com.br> writes:

|/* In ruby: myhash = { :foo => 'blah' } */
|foo = rb_hash_aref(myhash, rb_intern("foo")); /* returns Qnil :( */

rb_intern() gives you ID, which is a mere C number.  You have to
convert it into a Ruby Symbol Object by using ID2SYM() macro.

							matz.