From: elathan@... Date: 2004-01-08T18:03:15+09:00 Subject: convert a C/C++ array to a Ruby array 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