On Dec 3, 2005, at 11:36 PM, David Koontz wrote: > > If in the C layer I modify the value of one of the array elements > that value is changed when I return but I don't have a way of > propogating that array element's value to the original variable > that was passed in. Is there any way to get the object containing > the variable (maybe by using the object_id?) that was passed in and > then use that to set a new value for the variable? > > David Koontz > No. Consider changing the mapping into one that returns multiple values, or do something like v = [] def fun(x) x << result end fun(v) # do stuff with v[0]