E
elathan
Hello!
While writting a Ruby extension, consider the prototype:
double * foo(void);
I would like, optimally, to return a Ruby array with floats, but the problem is that I don't know
the length of the C array of doubles which foo() returns.
Is there a way to accomplish such a thing? If not, how should the Right (TM) Ruby
extension treat such a prototype?
I am compiling with g++, so I can use all the functionality C++ provides.
Regards,
Elias
While writting a Ruby extension, consider the prototype:
double * foo(void);
I would like, optimally, to return a Ruby array with floats, but the problem is that I don't know
the length of the C array of doubles which foo() returns.
Is there a way to accomplish such a thing? If not, how should the Right (TM) Ruby
extension treat such a prototype?
I am compiling with g++, so I can use all the functionality C++ provides.
Regards,
Elias