Andre Nathan
1/14/2008 6:48:00 PM
On Tue, 2008-01-15 at 00:59 +0900, Edward Liu wrote:
> Does anyone know of any way I can full access to the Ruby
> hash and array functions for C/C++?
You can use rb_funcall():
VALUE hash = ...;
VALUE keys = rb_funcall(hash, rb_intern("keys"), 0);
HTH,
Andre