hi,
i have a few ruby-root questions:
void foo(const char *__var);
then include the ruby.h file in the classes .C file (keeping it away from cint) then use the rb_ary_new etc...to fill an array with strings,floats,etc. and then use rb_gv_set to set a variable named __var on the ruby side to be the array. this works, but isn't the way i want to have to call things. if i knew how to simply return the VALUE object, then i could just fill the arrays myself.
just to note, since i couldn't include the ruby.h file without getting lots of errors...i tried simply copying the VALUE typedef (which is unsigned long) into my classes .h file. this compiled and ran, however the VALUE ruby array ended up as just an integer (bignum) on the ruby side...so it was just an unsigned long.
thanks.
mike williams Received on Mon Aug 21 2006 - 22:04:07 MEST
This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:00 MET