From: Yukihiro Matsumoto Date: 2006-04-08T00:02:21+09:00 Subject: Re: rb_hash_aref and symbol keys Hi, In message "Re: rb_hash_aref and symbol keys" on Fri, 7 Apr 2006 23:28:17 +0900, Andre Nathan 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.