I
Iñaki Baz Castillo
Hi, I do know how to create a hash from C in wich keys and values are strin=
gs:
VALUE hash =3D rb_hash_new();
rb_hash_aset(hash, rb_str_new("mykey",5), rb_str_new2(myvalue));
But now I want to create Hash entries with Symbol keys so the resulting Has=
h=20
would look like:
{ :mykey =3D> "lalala" }
By reading the C API documentation I don't find how to do it:
http://www.eqqon.com/index.php/Ruby_C_Extension
Any help please? Thanks a lot.
=2D-=20
I=C3=B1aki Baz Castillo <[email protected]>
gs:
VALUE hash =3D rb_hash_new();
rb_hash_aset(hash, rb_str_new("mykey",5), rb_str_new2(myvalue));
But now I want to create Hash entries with Symbol keys so the resulting Has=
h=20
would look like:
{ :mykey =3D> "lalala" }
By reading the C API documentation I don't find how to do it:
http://www.eqqon.com/index.php/Ruby_C_Extension
Any help please? Thanks a lot.
=2D-=20
I=C3=B1aki Baz Castillo <[email protected]>