From: John Fletcher Date: 2003-07-08T21:23:53+09:00 Subject: Re: Problem with coerce and SWIG John Fletcher wrote: > I am attempting to use coerce to be able to do calculations like > > 1 + x > > where x is an object I have wrapped using SWIG. I use an STL vector to > return the objects to Ruby and a type mapping (typemap) within SWIG to > construct a Ruby array. > > It all works fine except that the first item of the Ruby array loses its > value in the return process and Ruby receives a large integer which > looks like an address. > > I have reported the full details on the SWIG list. > > I am using SWIG 1.3.19 and Ruby 1.6.8. > > Is this a known problem or have I found something new? > > Thanks > > John This problem is resolved an will be reported on the SWIG list. The solution is in a better choice of the typemap. John