From: Max Lapshin Date: 2006-10-04T17:03:56+09:00 Subject: Re: need help with narray: how to return an array from a C-extension On Oct 4, 2006, at 11:30 AM, Joachim (M�nchen) wrote: > Hi there, > I am writing my first C extension module to ruby, and I need a little > help: > import of parameters works fine, but export of results not yet: VALUE my_function(VALUE self, VALUE param) { VALUE result; result = rb_ary_new(NUM2INT(param)); return result; }